Package org.dspace.app.util
Class CollectionDropDown.CollectionPathEntry
- java.lang.Object
-
- org.dspace.app.util.CollectionDropDown.CollectionPathEntry
-
- All Implemented Interfaces:
Comparable<CollectionDropDown.CollectionPathEntry>
- Enclosing class:
- CollectionDropDown
public static class CollectionDropDown.CollectionPathEntry extends Object implements Comparable<CollectionDropDown.CollectionPathEntry>
A helper class to hold (collection, full path) pairs. Instances of the helper class are sortable: two instances will be compared first on their full path and if those are equal, the comparison will fall back to comparing collection IDs.
-
-
Field Summary
Fields Modifier and Type Field Description CollectioncollectionStringpath
-
Constructor Summary
Constructors Constructor Description CollectionPathEntry(Collection collection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CollectionDropDown.CollectionPathEntry other)booleanequals(Object o)inthashCode()
-
-
-
Field Detail
-
collection
public Collection collection
-
path
public String path
-
-
Constructor Detail
-
CollectionPathEntry
public CollectionPathEntry(Collection collection, String path)
-
-
Method Detail
-
compareTo
public int compareTo(CollectionDropDown.CollectionPathEntry other)
- Specified by:
compareToin interfaceComparable<CollectionDropDown.CollectionPathEntry>
-
-