public class IntSparseArray extends SparseArray<Integer>
Java class for INT-SparseArray element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="INT-SparseArray">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.dmg.org/PMML-4_3}Indices" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_3}INT-Entries" minOccurs="0"/>
</sequence>
<attribute name="n" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" />
<attribute name="defaultValue" type="{http://www.dmg.org/PMML-4_3}INT-NUMBER" default="0" />
</restriction>
</complexContent>
</complexType>
</element>
| Constructor and Description |
|---|
IntSparseArray() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
IntSparseArray |
addEntries(Integer... entries) |
IntSparseArray |
addIndices(Integer... indices) |
Integer |
getDefaultValue()
Gets the value of the defaultValue property.
|
List<Integer> |
getEntries()
Gets the value of the entries property.
|
List<Integer> |
getIndices()
Gets the value of the indices property.
|
Integer |
getN()
Gets the value of the n property.
|
boolean |
hasEntries() |
boolean |
hasIndices() |
IntSparseArray |
setDefaultValue(Integer defaultValue)
Sets the value of the defaultValue property.
|
IntSparseArray |
setN(Integer n)
Sets the value of the n property.
|
getLocator, setLocator, traverse, traverse, traverse, traverse, traverseMixedpublic Integer getN()
getN in class SparseArray<Integer>Integerpublic IntSparseArray setN(Integer n)
setN in class SparseArray<Integer>n - allowed object is
Integerpublic Integer getDefaultValue()
getDefaultValue in class SparseArray<Integer>Integerpublic IntSparseArray setDefaultValue(Integer defaultValue)
setDefaultValue in class SparseArray<Integer>defaultValue - allowed object is
Integerpublic List<Integer> getIndices()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the indices property.
For example, to add a new item, do as follows:
getIndices().add(newItem);
Objects of the following type(s) are allowed in the list
Integer
getIndices in class SparseArray<Integer>public List<Integer> getEntries()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the entries property.
For example, to add a new item, do as follows:
getEntries().add(newItem);
Objects of the following type(s) are allowed in the list
Integer
getEntries in class SparseArray<Integer>public boolean hasIndices()
hasIndices in class SparseArray<Integer>public IntSparseArray addIndices(Integer... indices)
public boolean hasEntries()
hasEntries in class SparseArray<Integer>public IntSparseArray addEntries(Integer... entries)
public VisitorAction accept(Visitor visitor)
Copyright © 2016 University of Tartu. All rights reserved.