All Packages Class Hierarchy This Package Previous Next Index
Class jive.erlang.EInteger
java.lang.Object
|
+----jive.erlang.EVar
|
+----jive.erlang.EInteger
- public class EInteger
- extends EVar
EInteger is a class that encapsulates an Erlang Integer.
- Author:
- Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)
-
EInteger(int)
- Creates an Erlang Integer with the given integer value.
-
equals(Object)
- Compares this object to the specified object.
-
hashCode()
- Returns a hashcode for this EInteger.
-
pack()
-
Packs the Erlang String into a byte array.
-
unsignedValue()
-
Returns the (unsigned) long value of this Erlang Integer.
-
value()
-
Returns the integer value of this Erlang Integer.
EInteger
public EInteger(int eInt)
- Creates an Erlang Integer with the given integer value.
value
public int value()
- Returns the integer value of this Erlang Integer.
unsignedValue
public long unsignedValue()
- Returns the (unsigned) long value of this Erlang Integer.
hashCode
public int hashCode()
- Returns a hashcode for this EInteger.
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Compares this object to the specified object.
Two EIntegers are the same if they contain the same integer value.
- Overrides:
- equals in class Object
pack
public byte[] pack()
- Packs the Erlang String into a byte array.
Used when sending the string to an Erlang server.
- Overrides:
- pack in class EVar
All Packages Class Hierarchy This Package Previous Next Index