com.gentics.api.lib.datasource
Class ResolvableDatasource.Sorter
java.lang.Object
com.gentics.api.lib.datasource.ResolvableDatasource.Sorter
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- ResolvableDatasource
protected class ResolvableDatasource.Sorter
- extends Object
- implements Comparator
Comparator class for sorting Resolvables
TODO unify this (use the generic Comparator for resolvables)
- Author:
- norbert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResolvableDatasource.Sorter
public ResolvableDatasource.Sorter(String sortBy,
int sortOrder)
- create instance of the sorter
- Parameters:
sortBy
- comma separated list of sort attributessortOrder
- sort order
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
Copyright © 2013 Gentics Software GmbH. All Rights Reserved.