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)
-
EAtom()
-
Initiates the atom type.
-
EAtom(String)
-
Creates an Erlang Atom with a value given by eString.
-
equals(Object)
- Compares this EAtom with another EAtom
Two EAtoms are equal if their respective Java strings are equal.
-
hashCode()
- Returns a hashcode for this EAtom.
-
length()
- Returns the length of this atom.
-
pack()
-
Packs the Erlang Atom into a byte array.
-
value()
-
Returns the Java string representing the Atom.
EAtom
public EAtom()
- Initiates the atom type. It is private to prevent creation
of Erlang Atoms without a value.
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.
length
public int length()
- Returns the length of this atom.
value
public String value()
- Returns the Java string representing the Atom.
hashCode
public int hashCode()
- Returns a hashcode for this EAtom. Same as for String.
- Overrides:
- hashCode in class Object
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
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