public class IntegerIntervalFeatureData
extends java.lang.Object
implements galileo.serialization.ByteSerializable
Modifier and Type | Field and Description |
---|---|
protected T |
data |
protected T |
data2 |
protected FeatureType |
type |
Constructor and Description |
---|
IntegerIntervalFeatureData(int data1,
int data2) |
IntegerIntervalFeatureData(galileo.serialization.SerializationInputStream in) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(galileo.dataset.feature.FeatureData<?> featureData) |
boolean |
equals(java.lang.Object obj) |
FeatureType |
getType()
Return this FeatureData's type.
|
int |
hashCode() |
void |
serialize(galileo.serialization.SerializationOutputStream out) |
byte[] |
toBytes()
Retrieves the binary byte array representation of this FeatureData.
|
double |
toDouble()
Provides the double precision floating-point representation of this
FeatureData.
|
Pair<java.lang.Double,java.lang.Double> |
toDoubleInterval()
Provides the double-precision floating point interval representation of
this FeatureData.
|
float |
toFloat()
Provides the float representation of this FeatureData.
|
Pair<java.lang.Float,java.lang.Float> |
toFloatInterval()
Provides the floating point interval representation of this FeatureData.
|
int |
toInt()
Provides the integer representation of this FeatureData.
|
Pair<java.lang.Integer,java.lang.Integer> |
toIntInterval()
Provides the integer-based interval representation of this FeatureData.
|
long |
toLong()
Provides the long integer representation of this FeatureData.
|
Pair<java.lang.Long,java.lang.Long> |
toLongInterval()
Provides the long integer-based interval representation of this
FeatureData.
|
java.lang.String |
toString()
Provides the String-based representation of this FeatureData.
|
protected T extends java.lang.Number & java.lang.Comparable<T> data2
protected T extends java.lang.Comparable<T> data
protected FeatureType type
public IntegerIntervalFeatureData(int data1, int data2)
@ByteSerializable.Deserialize public IntegerIntervalFeatureData(galileo.serialization.SerializationInputStream in) throws java.io.IOException
java.io.IOException
public void serialize(galileo.serialization.SerializationOutputStream out) throws java.io.IOException
serialize
in interface galileo.serialization.ByteSerializable
java.io.IOException
public Pair<java.lang.Integer,java.lang.Integer> toIntInterval()
public Pair<java.lang.Long,java.lang.Long> toLongInterval()
public Pair<java.lang.Float,java.lang.Float> toFloatInterval()
public Pair<java.lang.Double,java.lang.Double> toDoubleInterval()
public byte[] toBytes()
public java.lang.String toString()
public int toInt()
public long toLong()
public float toFloat()
public double toDouble()
public FeatureType getType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(galileo.dataset.feature.FeatureData<?> featureData)
compareTo
in interface java.lang.Comparable<galileo.dataset.feature.FeatureData<?>>