public class ConfEBig extends ConfEObject implements Serializable, Cloneable
ConfEByte
, ConfEChar
, ConfEInt
, and
ConfEShort
attempt to map the E types onto the various Java integral
types. Two additional classes, ConfEUInt
and ConfEUShort
are
provided for Corba compatibility. See the documentation for IC for more
information.Constructor and Description |
---|
ConfEBig(BigInteger val) |
ConfEBig(byte[] val)
Create an E integer from the given value.
|
ConfEBig(ConfInputStream buf)
Create an E integer from a stream containing an integer encoded in E
external format.
|
Modifier and Type | Method and Description |
---|---|
BigInteger |
bigValue()
Get this number as a BigInteger.
|
void |
encode(ConfOutputStream buf)
Convert this number to the equivalent E external representation.
|
boolean |
equals(Object o)
Determine if two numbers are equal.
|
float |
floatValue()
Get this number as a float.
|
int |
hashCode() |
long |
longValue()
Get this number as a long
|
String |
toString()
Get the string representation of this number.
|
clone, decode
public ConfEBig(byte[] val)
val
- - byte array representing the big valuepublic ConfEBig(BigInteger val)
val
- public ConfEBig(ConfInputStream buf) throws ConfEDecodeException
buf
- the stream containing the encoded value.ConfEDecodeException
- if the buffer does not contain a valid external
representation of an E integer.public BigInteger bigValue()
public long longValue()
public float floatValue()
public String toString()
toString
in class ConfEObject
public void encode(ConfOutputStream buf)
encode
in class ConfEObject
buf
- an output stream to which the encoded number should be
written.public boolean equals(Object o)
equals
in class ConfEObject
o
- the number to compare to.