Package io.goobi.viewer.model.cms
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
An entity holding an object which can be selected or unselected
- Author:
- florian
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Selectable<T> other) boolean
getValue()
Getter for the fieldvalue
.int
hashCode()
boolean
isSelected.void
setSelected
(boolean selected) Setter for the fieldselected
.toString()
-
Constructor Details
-
Selectable
Constructor for Selectable.
- Parameters:
value
- a T object.selected
- a boolean.
-
-
Method Details
-
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
- Specified by:
compareTo
in interfaceComparable<T>
-
equals
-
hashCode
public int hashCode() -
toString
-