org.simantics.databoard.binding.impl
Class UnsignedByteBinding.Mutable

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.NumberBinding
          extended by org.simantics.databoard.binding.ByteBinding
              extended by org.simantics.databoard.binding.impl.UnsignedByteBinding
                  extended by org.simantics.databoard.binding.impl.UnsignedByteBinding.Mutable
All Implemented Interfaces:
java.util.Comparator<java.lang.Object>
Enclosing class:
UnsignedByteBinding

public static class UnsignedByteBinding.Mutable
extends UnsignedByteBinding


Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.impl.UnsignedByteBinding
UnsignedByteBinding.Immutable, UnsignedByteBinding.Mutable
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Constructor Summary
UnsignedByteBinding.Mutable(ByteType type)
           
 
Method Summary
 java.lang.Object create(byte value)
           
 java.lang.Object create(java.lang.Byte value)
           
 java.lang.Object create(java.lang.Number value)
          Create value by converting it from any Number instance to a Number instance of this Binding type.
 java.lang.Object create(java.lang.String value)
          Creates a value from its string representation
 boolean isImmutable()
          Return true if the value is immutable.
 boolean isInstance(java.lang.Object obj)
           
 void setValue(java.lang.Object obj, byte value)
           
 void setValue(java.lang.Object obj, java.lang.Number value)
           
 
Methods inherited from class org.simantics.databoard.binding.impl.UnsignedByteBinding
getValue_, getValue, toString
 
Methods inherited from class org.simantics.databoard.binding.ByteBinding
accept, accept, createUnchecked, createUnchecked, deepCompare, deepHashValue, type
 
Methods inherited from class org.simantics.databoard.binding.NumberBinding
assertInstaceIsValid, createUnchecked, createUnchecked, getComponentBinding, getComponentBinding, getComponentCount, readFrom
 
Methods inherited from class org.simantics.databoard.binding.Binding
assertInstaceIsValid, clone, cloneUnchecked, compare, createDefault, createDefaultUnchecked, createRandom, createRandom, createRandom, createRandomUnchecked, equals, hashValue, parseValue, parseValue, parseValueDefinition, printValue, printValueDefinition, readFromTry, readFromTryUnchecked, readFromUnchecked, serializer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

UnsignedByteBinding.Mutable

public UnsignedByteBinding.Mutable(ByteType type)
Method Detail

create

public java.lang.Object create(java.lang.Number value)
                        throws BindingException
Description copied from class: NumberBinding
Create value by converting it from any Number instance to a Number instance of this Binding type. NOTE WARNING! Using this method may lose precision or value in the conversion. E.g. Double to Integer, or Long to Byte

Specified by:
create in class ByteBinding
Returns:
the value in the format of the binding type
Throws:
BindingException

create

public java.lang.Object create(java.lang.String value)
                        throws BindingException
Description copied from class: NumberBinding
Creates a value from its string representation

Specified by:
create in class ByteBinding
Returns:
number
Throws:
BindingException

setValue

public void setValue(java.lang.Object obj,
                     java.lang.Number value)
              throws BindingException
Specified by:
setValue in class ByteBinding
Throws:
BindingException

isImmutable

public boolean isImmutable()
Description copied from class: Binding
Return true if the value is immutable. This question excludes the immutability of the component types.

Overrides:
isImmutable in class Binding
Returns:
true value if immutable

isInstance

public boolean isInstance(java.lang.Object obj)
Specified by:
isInstance in class ByteBinding

create

public java.lang.Object create(byte value)
                        throws BindingException
Specified by:
create in class ByteBinding
Throws:
BindingException

create

public java.lang.Object create(java.lang.Byte value)
                        throws BindingException
Specified by:
create in class ByteBinding
Throws:
BindingException

setValue

public void setValue(java.lang.Object obj,
                     byte value)
              throws BindingException
Specified by:
setValue in class ByteBinding
Throws:
BindingException