Class Item

java.lang.Object
se.datadosen.util.Item
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class Item
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Allow comboboxes to have item-value pairs. BeanBinder respects this class
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.Object item  
    java.lang.Object value  
  • Constructor Summary

    Constructors 
    Constructor Description
    Item​(java.lang.Object item)  
    Item​(java.lang.Object value, java.lang.Object item)  
  • Method Summary

    Modifier and Type Method Description
    int compareTo​(java.lang.Object o)  
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • item

      public java.lang.Object item
    • value

      public java.lang.Object value
  • Constructor Details

    • Item

      public Item​(java.lang.Object item)
    • Item

      public Item​(java.lang.Object value, java.lang.Object item)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • compareTo

      public int compareTo​(java.lang.Object o)
      Specified by:
      compareTo in interface java.lang.Comparable