public class ConfEPid extends ConfEObject implements Serializable, Cloneable
Constructor and Description |
---|
ConfEPid(ConfInputStream buf)
Create an E pid from a stream containing a pid encoded in E external
format.
|
ConfEPid(String node,
int id,
int serial,
int creation) |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
int |
creation()
Get the creation number from the pid
|
void |
encode(ConfOutputStream buf)
Convert this pid to the equivalent E external representation.
|
boolean |
equals(Object o)
Determine if two pids are equal.
|
int |
hashCode() |
int |
id()
Get the id number from the pid.
|
String |
node()
Get the node from the pid.
|
int |
serial()
Get the serial number from the pid
|
String |
toString()
Get the string representation of the pid.
|
decode
public ConfEPid(ConfInputStream buf) throws ConfEDecodeException
buf
- the stream containing the encoded ref.ConfEDecodeException
- if the buffer does not contain a valid external
representation of an E ref.public ConfEPid(String node, int id, int serial, int creation)
public int id()
public int serial()
public int creation()
public String node()
public String toString()
toString
in class ConfEObject
public void encode(ConfOutputStream buf)
encode
in class ConfEObject
buf
- an output stream to which the encoded pid should be written.public boolean equals(Object o)
equals
in class ConfEObject
o
- the other pid to compare to.public Object clone()
clone
in class ConfEObject