org.simantics.databoard.primitives
Class UnsignedInteger.Mutable

java.lang.Object
  extended by java.lang.Number
      extended by org.simantics.databoard.primitives.UnsignedInteger
          extended by org.simantics.databoard.primitives.UnsignedInteger.Mutable
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.lang.Number>
Enclosing class:
UnsignedInteger

public static class UnsignedInteger.Mutable
extends UnsignedInteger

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.primitives.UnsignedInteger
UnsignedInteger.Immutable, UnsignedInteger.Mutable
 
Field Summary
 
Fields inherited from class org.simantics.databoard.primitives.UnsignedInteger
L_MAX_VALUE, L_MIN_VALUE, MAX_VALUE, MIN_VALUE, ZERO
 
Constructor Summary
UnsignedInteger.Mutable()
           
UnsignedInteger.Mutable(int value)
          Create new unsigned integer from a signed integer.
UnsignedInteger.Mutable(long value)
           
UnsignedInteger.Mutable(java.lang.String stringValue)
           
 
Method Summary
static UnsignedInteger fromBits(int intBits)
           
 void setBits(int intBits)
           
 void setValue(int value)
           
 void setValue(long value)
           
 
Methods inherited from class org.simantics.databoard.primitives.UnsignedInteger
compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, toBits, toString, valueOf
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsignedInteger.Mutable

public UnsignedInteger.Mutable()

UnsignedInteger.Mutable

public UnsignedInteger.Mutable(int value)
                        throws java.lang.IllegalArgumentException
Create new unsigned integer from a signed integer. Use #fromBits() to make bitwise conversion

Parameters:
value - signed integer
Throws:
java.lang.IllegalArgumentException - if argument is sub zero

UnsignedInteger.Mutable

public UnsignedInteger.Mutable(long value)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

UnsignedInteger.Mutable

public UnsignedInteger.Mutable(java.lang.String stringValue)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

fromBits

public static UnsignedInteger fromBits(int intBits)

setBits

public void setBits(int intBits)

setValue

public void setValue(int value)

setValue

public void setValue(long value)