Package org.silverpeas.core.selection
Class SelectionEntry<T extends SilverpeasResource>
- java.lang.Object
-
- org.silverpeas.core.selection.SelectionEntry<T>
-
public class SelectionEntry<T extends SilverpeasResource> extends Object
An entry in theSelectionBasket
. It maps the resource that has been put into the basket with the context of its selection. It is related to the resource that has been put into the basket whatever its context, so the equality between two entries is done on the underlying resources.- Author:
- mmoquillon
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
SelectionContext
getContext()
Gets the context of the resource selection.T
getResource()
Gets the selected resource.int
hashCode()
-
-
-
Method Detail
-
getContext
public SelectionContext getContext()
Gets the context of the resource selection.- Returns:
- a
SelectionContext
instance.
-
getResource
public T getResource()
Gets the selected resource.- Returns:
- a
SilverpeasResource
object.
-
-