public class DoubleKeyInterval extends KeyInterval<DoubleKey> implements java.io.Serializable, BinarySerializable
Modifier and Type | Field and Description |
---|---|
protected DoubleKey |
from
Lower bound (inclusive).
|
protected DoubleKey |
to
Upeer bound (inclusive).
|
Modifier | Constructor and Description |
---|---|
protected |
DoubleKeyInterval(BinaryInput input,
BinarySerializator serializator)
Creates a new instance of DoubleKeyInterval loaded from binary input.
|
|
DoubleKeyInterval(DoubleKey from,
DoubleKey to)
Constructor for this interval.
|
Modifier and Type | Method and Description |
---|---|
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
int |
compareTo(KeyInterval<DoubleKey> o) |
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
DoubleKey |
getFrom()
Returns the lower bound.
|
DoubleKey |
getTo()
Returns the upper bound.
|
cutIntersectingIntervals, cutIntersectingIntervalsInner, equals, hashCode, intersect, isCovered, toString
protected final DoubleKey from
protected final DoubleKey to
public DoubleKeyInterval(DoubleKey from, DoubleKey to)
from
- lower bound (inclusive)to
- upper bound (inclusive)protected DoubleKeyInterval(BinaryInput input, BinarySerializator serializator) throws java.io.IOException
input
- the input to read the DoubleKeyInterval fromserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error reading from the inputpublic DoubleKey getFrom()
getFrom
in class KeyInterval<DoubleKey>
public DoubleKey getTo()
getTo
in class KeyInterval<DoubleKey>
public int compareTo(KeyInterval<DoubleKey> o)
compareTo
in interface java.lang.Comparable<KeyInterval<DoubleKey>>
public int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
output
.binarySerialize
in interface BinarySerializable
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serializationpublic int getBinarySize(BinarySerializator serializator)
getBinarySize
in interface BinarySerializable
serializator
- the serializator used to write objects