public class IntSparseArray extends SparseArray<java.lang.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_2}Indices" minOccurs="0"/>
<element ref="{http://www.dmg.org/PMML-4_2}INT-Entries" minOccurs="0"/>
</sequence>
<attribute name="n" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" />
<attribute name="defaultValue" type="{http://www.dmg.org/PMML-4_2}INT-NUMBER" default="0" />
</restriction>
</complexContent>
</complexType>
</element>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Integer |
defaultValue |
protected java.util.List<java.lang.Integer> |
entries |
protected java.util.List<java.lang.Integer> |
indices |
protected java.lang.Integer |
n |
| Constructor and Description |
|---|
IntSparseArray() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
int |
getDefaultValue()
Gets the value of the defaultValue property.
|
java.util.List<java.lang.Integer> |
getEntries()
Gets the value of the entries property.
|
java.util.List<java.lang.Integer> |
getIndices()
Gets the value of the indices property.
|
java.lang.Integer |
getN()
Gets the value of the n property.
|
boolean |
hasEntries() |
boolean |
hasIndices() |
void |
setDefaultValue(java.lang.Integer value)
Sets the value of the defaultValue property.
|
void |
setN(java.lang.Integer value)
Sets the value of the n property.
|
IntSparseArray |
withDefaultValue(java.lang.Integer value) |
IntSparseArray |
withEntries(java.util.Collection<java.lang.Integer> values) |
IntSparseArray |
withEntries(java.lang.Integer... values) |
IntSparseArray |
withIndices(java.util.Collection<java.lang.Integer> values) |
IntSparseArray |
withIndices(java.lang.Integer... values) |
IntSparseArray |
withN(java.lang.Integer value) |
getLocator, setLocatorprotected java.lang.Integer n
protected java.lang.Integer defaultValue
protected java.util.List<java.lang.Integer> indices
protected java.util.List<java.lang.Integer> entries
public java.lang.Integer getN()
getN in class SparseArray<java.lang.Integer>Stringpublic void setN(java.lang.Integer value)
setN in class SparseArray<java.lang.Integer>value - allowed object is
Stringpublic int getDefaultValue()
Stringpublic void setDefaultValue(java.lang.Integer value)
value - allowed object is
Stringpublic java.util.List<java.lang.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<java.lang.Integer>public java.util.List<java.lang.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<java.lang.Integer>public IntSparseArray withN(java.lang.Integer value)
public IntSparseArray withDefaultValue(java.lang.Integer value)
public IntSparseArray withIndices(java.lang.Integer... values)
public IntSparseArray withIndices(java.util.Collection<java.lang.Integer> values)
public IntSparseArray withEntries(java.lang.Integer... values)
public IntSparseArray withEntries(java.util.Collection<java.lang.Integer> values)
public boolean hasIndices()
public boolean hasEntries()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.