Class ConfEBig

Object
com.tailf.proto.ConfEObject
com.tailf.proto.ConfEBig
All Implemented Interfaces:
Serializable, Cloneable

public class ConfEBig extends ConfEObject implements Serializable, Cloneable
Provides a Java representation of E integral types. E does not distinguish between different integral types, however this class and its subclasses 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.
See Also:
  • Constructor Details

    • ConfEBig

      public ConfEBig(byte[] val)
      Create an E integer from the given value.
      Parameters:
      val - - byte array representing the big value
    • ConfEBig

      public ConfEBig(BigInteger val)
      Parameters:
      val -
    • ConfEBig

      public ConfEBig(ConfInputStream buf) throws ConfEDecodeException
      Create an E integer from a stream containing an integer encoded in E external format.
      Parameters:
      buf - the stream containing the encoded value.
      Throws:
      ConfEDecodeException - if the buffer does not contain a valid external representation of an E integer.
  • Method Details

    • bigValue

      public BigInteger bigValue()
      Get this number as a BigInteger.
      Returns:
      the value of this number, as a BigInteger.
    • longValue

      public long longValue()
      Get this number as a long
      Returns:
      the value of this number, as a long.
    • floatValue

      public float floatValue()
      Get this number as a float.
      Returns:
      the value of this number, as a long.
    • toString

      public String toString()
      Get the string representation of this number.
      Specified by:
      toString in class ConfEObject
      Returns:
      the string representation of this number.
    • encode

      public void encode(ConfOutputStream buf)
      Convert this number to the equivalent E external representation.
      Specified by:
      encode in class ConfEObject
      Parameters:
      buf - an output stream to which the encoded number should be written.
    • equals

      public boolean equals(Object o)
      Determine if two numbers are equal. Numbers are equal if they contain the same value.
      Specified by:
      equals in class ConfEObject
      Parameters:
      o - the number to compare to.
      Returns:
      true if the numbers have the same value.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object