org.simantics.databoard.binding.impl
Class UnsignedLongBinding

java.lang.Object
  extended by org.simantics.databoard.binding.Binding
      extended by org.simantics.databoard.binding.NumberBinding
          extended by org.simantics.databoard.binding.LongBinding
              extended by org.simantics.databoard.binding.impl.UnsignedLongBinding
All Implemented Interfaces:
java.util.Comparator<java.lang.Object>
Direct Known Subclasses:
UnsignedLongBinding.Immutable, UnsignedLongBinding.Mutable

public abstract class UnsignedLongBinding
extends LongBinding

Binding of UnsignedLong to long type. This is bitwise binding, i.e. high values are negative.

Author:
Toni Kalajainen

Nested Class Summary
static class UnsignedLongBinding.Immutable
           
static class UnsignedLongBinding.Mutable
           
 
Nested classes/interfaces inherited from class org.simantics.databoard.binding.Binding
Binding.Visitor<T>, Binding.Visitor1
 
Method Summary
 long getValue_(java.lang.Object o)
           
 java.lang.Long getValue(java.lang.Object o)
          Get numeric value of an object
 java.lang.String toString(java.lang.Object value)
           
 
Methods inherited from class org.simantics.databoard.binding.LongBinding
accept, accept, create, create, create, create, createUnchecked, createUnchecked, deepCompare, deepHashValue, isInstance, setValue, setValue, 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, isImmutable, 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
 

Method Detail

toString

public java.lang.String toString(java.lang.Object value)
                          throws BindingException
Overrides:
toString in class Binding
Throws:
BindingException

getValue

public java.lang.Long getValue(java.lang.Object o)
                        throws BindingException
Description copied from class: NumberBinding
Get numeric value of an object

Specified by:
getValue in class LongBinding
Parameters:
o - object
Returns:
Number
Throws:
BindingException - thrown if obj is incorrect class

getValue_

public long getValue_(java.lang.Object o)
               throws BindingException
Specified by:
getValue_ in class LongBinding
Throws:
BindingException