net.jradius.packet.attribute.value
Class SignedValue
java.lang.Object
net.jradius.packet.attribute.value.AttributeValue
net.jradius.packet.attribute.value.IntegerValue
net.jradius.packet.attribute.value.SignedValue
- All Implemented Interfaces:
- Serializable
public class SignedValue
- extends IntegerValue
WiMAX signed attribute.
4-octet signed integer in network byte order.
It seems reasonable (at least for me ;-P ) to use the
IntegerValue
, overriding the
IntegerValue.setValue(byte[])
and.
IntegerValue.isValid(long)
methods.
- Author:
- Danilo Levantesi
- See Also:
- Serialized Form
Methods inherited from class net.jradius.packet.attribute.value.IntegerValue |
copy, getBytes, getBytes, getLength, getValue, getValueObject, setLength, setLong, setValue, setValue, setValue, setValueObject |
SignedValue
public SignedValue()
SignedValue
public SignedValue(Long l)
SignedValue
public SignedValue(Integer i)
SignedValue
public SignedValue(int i)
SignedValue
public SignedValue(long l)
toString
public String toString()
- Overrides:
toString
in class IntegerValue
toXMLString
public String toXMLString()
- Overrides:
toXMLString
in class IntegerValue
setValue
public void setValue(long l)
throws NumberFormatException
- Overrides:
setValue
in class IntegerValue
- Throws:
NumberFormatException
isValid
public static boolean isValid(long l)
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.