public class ItemComparator extends Object implements Comparator, Serializable
| Constructor and Description |
|---|
ItemComparator(String element,
String qualifier,
String language,
boolean max)
Constructor.
|
public ItemComparator(String element, String qualifier, String language, boolean max)
element - The Dublin Core elementqualifier - The Dublin Core qualifierlanguage - The language for the DCValuesmax - If true, and there is more than one Metadatum for element,
qualifier and language, then use the maximum value
lexicographically; otherwise use the minimum value.public int compare(Object first, Object second)
Return >= 1 if the first is lexicographically greater than the second; <= -1 if the second is lexicographically greater than the first, and 0 otherwise.
compare in interface Comparatorfirst - The first object to compare. Must be an object of type
org.dspace.content.Item.second - The second object to compare. Must be an object of type
org.dspace.content.Item.public boolean equals(Object obj)
equals in interface Comparatorequals in class Objectobj - The object to compare to.Copyright © 2014 DuraSpace. All Rights Reserved.