org.teleal.cling.model.types
Class UnsignedVariableInteger
java.lang.Object
org.teleal.cling.model.types.UnsignedVariableInteger
- Direct Known Subclasses:
- UnsignedIntegerFourBytes, UnsignedIntegerOneByte, UnsignedIntegerTwoBytes
public abstract class UnsignedVariableInteger
- extends Object
TODO: A temporary solution for unsigned "non-negative" types in UPnP, hopefully not used for any arithmetic
Field Summary |
protected long |
value
|
value
protected long value
UnsignedVariableInteger
protected UnsignedVariableInteger()
UnsignedVariableInteger
public UnsignedVariableInteger(long value)
throws NumberFormatException
- Throws:
NumberFormatException
UnsignedVariableInteger
public UnsignedVariableInteger(String s)
throws NumberFormatException
- Throws:
NumberFormatException
setValue
protected UnsignedVariableInteger setValue(long value)
getValue
public Long getValue()
isInRange
public void isInRange(long value)
throws NumberFormatException
- Throws:
NumberFormatException
getMinValue
public int getMinValue()
getBits
public abstract UnsignedVariableInteger.Bits getBits()
increment
public UnsignedVariableInteger increment(boolean rolloverToOne)
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.