|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.debellor.core.DataObject
org.debellor.core.data.DataVector
public final class DataVector
Represents vectors of data items of different types. Vectors can have fixed or variable length.
| Nested Class Summary | |
|---|---|
static class |
DataVector.DataVectorType
dataType of DataVector. |
| Constructor Summary | |
|---|---|
DataVector(DataObject... items)
Constructs a new DataVector containing the items passed as an array or a variable-length list of DataObjects. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Must be implemented by every subclass. |
DataObject[] |
get()
Returns a shallow copy> of the array of items of this DataVector. |
DataObject |
get(int i)
|
int |
hashCode()
Must be implemented by every subclass. |
boolean |
isMissing(int i)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class org.debellor.core.DataObject |
|---|
asDataVector, asNumericFeature, asSymbolicFeature |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataVector(DataObject... items)
| Method Detail |
|---|
public int size()
public boolean isMissing(int i)
public DataObject get(int i)
public DataObject[] get()
get(int) method instead, which does not allocate new resources.
Here, the existing array could not be returned, as this would violate
immutability of data objects (the returned array could be modified
afterwards, which would indirectly modify this DataVector object).
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
DataObject
equals in class DataObjectpublic int hashCode()
DataObject
hashCode in class DataObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||