net.jradius.packet.attribute.value
Class SignedValue

java.lang.Object
  extended by net.jradius.packet.attribute.value.AttributeValue
      extended by net.jradius.packet.attribute.value.IntegerValue
          extended by 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

Field Summary
 
Fields inherited from class net.jradius.packet.attribute.value.IntegerValue
integerValue, length
 
Constructor Summary
SignedValue()
           
SignedValue(int i)
           
SignedValue(Integer i)
           
SignedValue(long l)
           
SignedValue(Long l)
           
 
Method Summary
static boolean isValid(long l)
           
 void setValue(long l)
           
 String toString()
           
 String toXMLString()
           
 
Methods inherited from class net.jradius.packet.attribute.value.IntegerValue
copy, getBytes, getBytes, getLength, getValue, getValueObject, setLength, setLong, setValue, setValue, setValue, setValueObject
 
Methods inherited from class net.jradius.packet.attribute.value.AttributeValue
getBytes, getBytes, toDebugString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SignedValue

public SignedValue()

SignedValue

public SignedValue(Long l)

SignedValue

public SignedValue(Integer i)

SignedValue

public SignedValue(int i)

SignedValue

public SignedValue(long l)
Method Detail

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.