public class OtpErlangPid extends OtpErlangObject implements java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.lang.Object>
OtpErlangObject.Hash
hashCodeValue
构造器和说明 |
---|
OtpErlangPid(OtpInputStream buf)
Create an Erlang PID from a stream containing a PID encoded in Erlang
external format.
|
OtpErlangPid(OtpLocalNode self)
已过时。
use OtpLocalNode:createPid() instead
|
OtpErlangPid(java.lang.String node,
int id,
int serial,
int creation)
Create an Erlang pid from its components.
|
限定符和类型 | 方法和说明 |
---|---|
int |
compareTo(java.lang.Object o) |
int |
creation()
Get the creation number from the PID.
|
protected int |
doHashCode() |
void |
encode(OtpOutputStream buf)
Convert this PID to the equivalent Erlang external representation.
|
boolean |
equals(java.lang.Object o)
Determine if two PIDs are equal.
|
int |
id()
Get the id number from the PID.
|
java.lang.String |
node()
Get the node name from the PID.
|
int |
serial()
Get the serial number from the PID.
|
java.lang.String |
toString()
Get the string representation of the PID.
|
clone, decode, hashCode
@Deprecated public OtpErlangPid(OtpLocalNode self)
self
- the local node.public OtpErlangPid(OtpInputStream buf) throws OtpErlangDecodeException
buf
- the stream containing the encoded PID.OtpErlangDecodeException
- if the buffer does not contain a valid external
representation of an Erlang PID.public OtpErlangPid(java.lang.String node, int id, int serial, int creation)
node
- the nodename.id
- an arbitrary number. Only the low order 15 bits will be
used.serial
- another arbitrary number. Only the low order 13 bits will
be used.creation
- yet another arbitrary number. Only the low order 2 bits
will be used.public int serial()
public int id()
public int creation()
public java.lang.String node()
public java.lang.String toString()
toString
在类中 OtpErlangObject
public void encode(OtpOutputStream buf)
encode
在类中 OtpErlangObject
buf
- an output stream to which the encoded PID should be
written.public boolean equals(java.lang.Object o)
equals
在类中 OtpErlangObject
port
- the other PID to compare to.protected int doHashCode()
doHashCode
在类中 OtpErlangObject
public int compareTo(java.lang.Object o)
compareTo
在接口中 java.lang.Comparable<java.lang.Object>