public class ConfELong 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 | 
|---|
ConfELong(ConfInputStream buf)
Create an E integer from a stream containing an integer encoded in E
 external format. 
 | 
ConfELong(long l)
Create an E integer from the given value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
byte | 
byteValue()
Get this number as a byte. 
 | 
char | 
charValue()
Get this number as a char. 
 | 
void | 
encode(ConfOutputStream buf)
Convert this number to the equivalent E external representation. 
 | 
boolean | 
equals(Object o)
Determine if two numbers are equal. 
 | 
int | 
intValue()
Get this number as an int. 
 | 
long | 
longValue()
Get this number as a long. 
 | 
short | 
shortValue()
Get this number as a short. 
 | 
String | 
toString()
Get the string representation of this number. 
 | 
int | 
uIntValue()
Get this number as a non-negative int. 
 | 
short | 
uShortValue()
Get this number as a non-negative short. 
 | 
clone, decodepublic ConfELong(long l)
l - the long value to use.public ConfELong(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 long longValue()
public int intValue()
             throws ConfERangeException
ConfERangeException - if the value is too large to be represented as an int.public int uIntValue()
              throws ConfERangeException
ConfERangeException - if the value is too large to be represented as an int, or
                if the value is negative.public short shortValue()
                 throws ConfERangeException
ConfERangeException - if the value is too large to be represented as a short.public short uShortValue()
                  throws ConfERangeException
ConfERangeException - if the value is too large to be represented as a short, or
                if the value is negative.public char charValue()
               throws ConfERangeException
ConfERangeException - if the value is too large to be represented as a char.public byte byteValue()
               throws ConfERangeException
ConfERangeException - if the value is too large to be represented as a byte.public String toString()
toString in class ConfEObjectpublic void encode(ConfOutputStream buf)
encode in class ConfEObjectbuf - an output stream to which the encoded number should be
            written.public boolean equals(Object o)
equals in class ConfEObjecto - the number to compare to.