Class Selectable<T>

java.lang.Object
io.goobi.viewer.model.cms.Selectable<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable, Comparable<Selectable<T>>
Direct Known Subclasses:
TranslatedSelectable

public class Selectable<T> extends Object implements Comparable<Selectable<T>>, Serializable
An entity holding an object which can be selected or unselected
Author:
florian
See Also:
  • Constructor Details

    • Selectable

      public Selectable(T value, boolean selected)

      Constructor for Selectable.

      Parameters:
      value - a T object.
      selected - a boolean.
  • Method Details

    • getValue

      public T getValue()

      Getter for the field value.

      Returns:
      the value
    • isSelected

      public boolean isSelected()

      isSelected.

      Returns:
      the selected
    • setSelected

      public void setSelected(boolean selected)

      Setter for the field selected.

      Parameters:
      selected - the selected to set
    • compareTo

      public int compareTo(Selectable<T> other)
      Specified by:
      compareTo in interface Comparable<T>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object