All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jive.erlang.EAtom

java.lang.Object
   |
   +----jive.erlang.EVar
           |
           +----jive.erlang.EAtom

public class EAtom
extends EVar
EAtom is a class that represents an Erlang Atom.

Author:
Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)

Constructor Index

 o EAtom()
Initiates the atom type.
 o EAtom(String)
Creates an Erlang Atom with a value given by eString.

Method Index

 o equals(Object)
Compares this EAtom with another EAtom Two EAtoms are equal if their respective Java strings are equal.
 o hashCode()
Returns a hashcode for this EAtom.
 o length()
Returns the length of this atom.
 o pack()
Packs the Erlang Atom into a byte array.
 o value()
Returns the Java string representing the Atom.

Constructors

 o EAtom
 public EAtom()
Initiates the atom type. It is private to prevent creation of Erlang Atoms without a value.

 o EAtom
 public EAtom(String eString)
Creates an Erlang Atom with a value given by eString. Note: Should not allow empty Strings since we cannot allow empty Atoms.

Methods

 o length
 public int length()
Returns the length of this atom.

 o value
 public String value()
Returns the Java string representing the Atom.

 o hashCode
 public int hashCode()
Returns a hashcode for this EAtom. Same as for String.

Overrides:
hashCode in class Object
 o equals
 public boolean equals(Object str1)
Compares this EAtom with another EAtom Two EAtoms are equal if their respective Java strings are equal.

Overrides:
equals in class Object
 o pack
 public byte[] pack()
Packs the Erlang Atom 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