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 java.lang.Object
TODO: A temporary solution for unsigned "non-negative" types in UPnP, hopefully not used for any arithmetic
Field Summary |
protected long |
value
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
value
protected long value
UnsignedVariableInteger
protected UnsignedVariableInteger()
UnsignedVariableInteger
public UnsignedVariableInteger(long value)
throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
UnsignedVariableInteger
public UnsignedVariableInteger(java.lang.String s)
throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
setValue
protected UnsignedVariableInteger setValue(long value)
getValue
public java.lang.Long getValue()
isInRange
public void isInRange(long value)
throws java.lang.NumberFormatException
- Throws:
java.lang.NumberFormatException
getMinValue
public int getMinValue()
getBits
public abstract UnsignedVariableInteger.Bits getBits()
increment
public UnsignedVariableInteger increment(boolean rolloverToOne)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.