public class RealSparseArray extends SparseArray<java.lang.Double>
Java class for REAL-SparseArray element declaration.
The following schema fragment specifies the expected content contained within this class.
<element name="REAL-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}REAL-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}REAL-NUMBER" default="0" />
</restriction>
</complexContent>
</complexType>
</element>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Double |
defaultValue |
protected java.util.List<java.lang.Double> |
entries |
protected java.util.List<java.lang.Integer> |
indices |
protected java.lang.Integer |
n |
| Constructor and Description |
|---|
RealSparseArray() |
| Modifier and Type | Method and Description |
|---|---|
VisitorAction |
accept(Visitor visitor) |
double |
getDefaultValue()
Gets the value of the defaultValue property.
|
java.util.List<java.lang.Double> |
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.Double value)
Sets the value of the defaultValue property.
|
void |
setN(java.lang.Integer value)
Sets the value of the n property.
|
RealSparseArray |
withDefaultValue(java.lang.Double value) |
RealSparseArray |
withEntries(java.util.Collection<java.lang.Double> values) |
RealSparseArray |
withEntries(java.lang.Double... values) |
RealSparseArray |
withIndices(java.util.Collection<java.lang.Integer> values) |
RealSparseArray |
withIndices(java.lang.Integer... values) |
RealSparseArray |
withN(java.lang.Integer value) |
getLocator, setLocatorprotected java.lang.Integer n
protected java.lang.Double defaultValue
protected java.util.List<java.lang.Integer> indices
protected java.util.List<java.lang.Double> entries
public java.lang.Integer getN()
getN in class SparseArray<java.lang.Double>Stringpublic void setN(java.lang.Integer value)
setN in class SparseArray<java.lang.Double>value - allowed object is
Stringpublic double getDefaultValue()
Doublepublic void setDefaultValue(java.lang.Double value)
value - allowed object is
Doublepublic 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.Double>public java.util.List<java.lang.Double> 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
Double
getEntries in class SparseArray<java.lang.Double>public RealSparseArray withN(java.lang.Integer value)
public RealSparseArray withDefaultValue(java.lang.Double value)
public RealSparseArray withIndices(java.lang.Integer... values)
public RealSparseArray withIndices(java.util.Collection<java.lang.Integer> values)
public RealSparseArray withEntries(java.lang.Double... values)
public RealSparseArray withEntries(java.util.Collection<java.lang.Double> values)
public boolean hasIndices()
public boolean hasEntries()
public VisitorAction accept(Visitor visitor)
Copyright © 2015 University of Tartu. All Rights Reserved.