Class jive.erlang.EInteger
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)

Constructor Index

 o EInteger(int)
Creates an Erlang Integer with the given integer value.

Method Index

 o equals(Object)
Compares this object to the specified object.
 o hashCode()
Returns a hashcode for this EInteger.
 o pack()
Packs the Erlang String into a byte array.
 o unsignedValue()
Returns the (unsigned) long value of this Erlang Integer.
 o value()
Returns the integer value of this Erlang Integer.

Constructors

 o EInteger
  public EInteger(int eInt)
Creates an Erlang Integer with the given integer value.

Methods

 o value
  public int value()
Returns the integer value of this Erlang Integer.
 o unsignedValue
  public long unsignedValue()
Returns the (unsigned) long value of this Erlang Integer.
 o hashCode
  public int hashCode()
Returns a hashcode for this EInteger.
Overrides:
hashCode in class Object
 o 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
 o 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