All Packages Class Hierarchy This Package Previous Next Index
Class jive.erlang.EFloat
java.lang.Object
|
+----jive.erlang.EVar
|
+----jive.erlang.EFloat
- public class EFloat
- extends EVar
EFloat is a class that encapsulates an Erlang Float.
- Author:
- Kaj Nygren (kaj@medialab.ericsson.se), Joakim Grebenö (jocke@erix.ericsson.se)
-
EFloat(double)
- Creates an Erlang Float with the a given double value.
-
equals(Object)
- Compares this object to the specified object.
-
hashCode()
- Returns a hashcode for this EFloat (Code taken from Double class).
-
pack()
-
Packs the Erlang Float into a byte array.
-
value()
-
Returns the double value of this Erlang Float.
EFloat
public EFloat(double eFloat)
- Creates an Erlang Float with the a given double value.
value
public double value()
- Returns the double value of this Erlang Float.
hashCode
public int hashCode()
- Returns a hashcode for this EFloat (Code taken from Double class).
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Compares this object to the specified object.
Two EFloats are the same if they contain the same double value (Code
adapted from Integer class).
- Overrides:
- equals in class Object
pack
public byte[] pack()
- Packs the Erlang Float 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