Package com.ericsson.otp.erlang
Class OtpErlangFun
- java.lang.Object
- 
- com.ericsson.otp.erlang.OtpErlangObject
- 
- com.ericsson.otp.erlang.OtpErlangFun
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable
 
 public class OtpErlangFun extends OtpErlangObject - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.ericsson.otp.erlang.OtpErlangObjectOtpErlangObject.Hash
 
- 
 - 
Field Summary- 
Fields inherited from class com.ericsson.otp.erlang.OtpErlangObjecthashCodeValue
 
- 
 - 
Constructor SummaryConstructors Constructor Description OtpErlangFun(OtpErlangPid pid, java.lang.String module, int arity, byte[] md5, int index, long old_index, long uniq, OtpErlangObject[] freeVars)OtpErlangFun(OtpErlangPid pid, java.lang.String module, long index, long uniq, OtpErlangObject[] freeVars)OtpErlangFun(OtpInputStream buf)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intdoHashCode()voidencode(OtpOutputStream buf)Convert the object according to the rules of the Erlang external format.booleanequals(java.lang.Object o)Determine if two Erlang objects are equal.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
OtpErlangFunpublic OtpErlangFun(OtpInputStream buf) throws OtpErlangDecodeException - Throws:
- OtpErlangDecodeException
 
 - 
OtpErlangFunpublic OtpErlangFun(OtpErlangPid pid, java.lang.String module, long index, long uniq, OtpErlangObject[] freeVars) 
 - 
OtpErlangFunpublic OtpErlangFun(OtpErlangPid pid, java.lang.String module, int arity, byte[] md5, int index, long old_index, long uniq, OtpErlangObject[] freeVars) 
 
- 
 - 
Method Detail- 
encodepublic void encode(OtpOutputStream buf) Description copied from class:OtpErlangObjectConvert the object according to the rules of the Erlang external format. This is mainly used for sending Erlang terms in messages, however it can also be used for storing terms to disk.- Specified by:
- encodein class- OtpErlangObject
- Parameters:
- buf- an output stream to which the encoded term should be written.
 
 - 
equalspublic boolean equals(java.lang.Object o) Description copied from class:OtpErlangObjectDetermine if two Erlang objects are equal. In general, Erlang objects are equal if the components they consist of are equal.- Specified by:
- equalsin class- OtpErlangObject
- Parameters:
- o- the object to compare to.
- Returns:
- true if the objects are identical.
 
 - 
doHashCodeprotected int doHashCode() - Overrides:
- doHashCodein class- OtpErlangObject
 
 - 
toStringpublic java.lang.String toString() - Specified by:
- toStringin class- OtpErlangObject
- Returns:
- the printable representation of the object. This is usually similar to the representation used by Erlang for the same type of object.
 
 
- 
 
-