org.simantics.databoard.util
Class Bean.Id

java.lang.Object
  extended by org.simantics.databoard.util.Bean
      extended by org.simantics.databoard.util.Bean.Id
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<Bean>
Enclosing class:
Bean

public static class Bean.Id
extends Bean

In this version of the bean, the hash/equals compares to identifiers. Identifier is a field with @Idenfitier annotation.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.simantics.databoard.util.Bean
Bean.Id
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compare to another bean of same datatype for equal identifier.
 int hashCode()
           
 
Methods inherited from class org.simantics.databoard.util.Bean
assertIsValid, clone, compareTo, deserialize, equalContents, getBinding, getField, getField, getFieldBinding, getFieldUnchecked, getIdentifier, getIdentifierBinding, hasField, init, parse, print, print, printLine, readAvailableFields, readFile, readFrom, readObject, serialize, setField, setToDefault, setToRandom, toString, writeFile, writeObject
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Bean

equals

public boolean equals(java.lang.Object obj)
Compare to another bean of same datatype for equal identifier. (Can be different binding)

Overrides:
equals in class Bean