public class Range extends Object implements Externalizable, Streamable, Comparable<Range>
| Constructor and Description |
|---|
Range()
For externalization
|
Range(long low,
long high) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Range other) |
boolean |
equals(Object obj) |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
void |
readFrom(DataInputStream in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
void |
writeTo(DataOutputStream out)
Write the entire state of the current object (including superclasses) to outstream.
|
public int compareTo(Range other)
compareTo in interface Comparable<Range>public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeTo(DataOutputStream out) throws IOException
StreamablewriteTo in interface StreamableIOExceptionpublic void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException
StreamablereadFrom in interface StreamableIOExceptionIllegalAccessExceptionInstantiationExceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.