public class MessageID extends java.lang.Object implements java.io.Externalizable, java.lang.Comparable<MessageID>, java.lang.Cloneable, Streamable
| Constructor and Description |
|---|
MessageID() |
MessageID(Address address,
long id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(MessageID other) |
boolean |
equals(java.lang.Object o) |
Address |
getAddress() |
int |
hashCode() |
void |
readExternal(java.io.ObjectInput objectInput) |
void |
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream
Note that the input stream must not be closed
|
int |
serializedSize() |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput objectOutput) |
void |
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
|
public MessageID()
public MessageID(Address address, long id)
public int compareTo(MessageID other)
compareTo in interface java.lang.Comparable<MessageID>public Address getAddress()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int serializedSize()
public void writeTo(java.io.DataOutput out)
throws java.lang.Exception
StreamablewriteTo in interface Streamablejava.lang.Exceptionpublic void readFrom(java.io.DataInput in)
throws java.lang.Exception
StreamablereadFrom in interface Streamablejava.lang.Exceptionpublic void writeExternal(java.io.ObjectOutput objectOutput)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput objectInput)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionCopyright © 1998-2020 Red Hat. All Rights Reserved.