|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.objects.keys.KeyInterval<DoubleKey>
messif.objects.keys.DoubleKeyInterval
public class DoubleKeyInterval
Field Summary | |
---|---|
protected DoubleKey |
from
Lower bound (inclusive). |
protected DoubleKey |
to
Upeer bound (inclusive). |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class messif.objects.keys.KeyInterval |
---|
cutIntersectingIntervals, cutIntersectingIntervalsInner, equals, hashCode, intersect, isCovered, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final DoubleKey from
protected final DoubleKey to
Constructor Detail |
---|
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 objects
java.io.IOException
- if there was an I/O error reading from the inputMethod Detail |
---|
public 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 objects
java.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |