com.atlassian.confluence.search.v2.sort
Class AbstractSort
java.lang.Object
com.atlassian.confluence.search.v2.sort.AbstractSort
- All Implemented Interfaces:
- SearchSort
- Direct Known Subclasses:
- CreatedSort, FilenameSort, FilesizeSort, FullnameSort, ModifiedSort, RelevanceSort, TitleSort
public abstract class AbstractSort
- extends Object
- implements SearchSort
Abstract superclass for simple sort types that just sort in a particular direction on some field.
AbstractSort
protected AbstractSort(String key,
SearchSort.Order order)
- Constructs a sort.
- Parameters:
key
- a unique key to identify this sortorder
- (required) the order of the sort (SearchSort.Order
). Implementations should define what ascending and
descending means in regards to their custom sort type.
getKey
public String getKey()
- Description copied from interface:
SearchSort
- Gets the key that uniquely identifies this sort method.
- Specified by:
getKey
in interface SearchSort
- Returns:
- the sort key
getOrder
public SearchSort.Order getOrder()
- Description copied from interface:
SearchSort
- Returns the order (whether
SearchSort.Order.ASCENDING
or SearchSort.Order.DESCENDING
) of the sort.
- Specified by:
getOrder
in interface SearchSort
- Returns:
- the order (whether
SearchSort.Order.ASCENDING
or SearchSort.Order.DESCENDING
) of the sort.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2003-2013 Atlassian. All Rights Reserved.