public class RevisionSort extends Sort
Sort implementation that allows the definition of the ordering of revisions independently of the
property name the revision number is held in.Sort.Direction, Sort.NullHandling, Sort.Order, Sort.TypedSort<T>DEFAULT_DIRECTION| Modifier and Type | Method and Description |
|---|---|
static RevisionSort |
asc()
Creates a
RevisionSort with ascending order for the revision number property, i.e. more recent revisions
will come last. |
static RevisionSort |
desc()
Creates a
RevisionSort with descending order for the revision number property, i.e. more recent revisions
will come first. |
static Sort.Direction |
getRevisionDirection(Sort sort)
Returns in which direction to sort revisions for the given
Sort instance. |
and, ascending, by, by, by, by, descending, equals, getOrderFor, hashCode, isSorted, isUnsorted, iterator, sort, toString, unsortedclone, finalize, getClass, notify, notifyAll, wait, wait, waitand, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliteratorpublic static RevisionSort asc()
RevisionSort with ascending order for the revision number property, i.e. more recent revisions
will come last.public static RevisionSort desc()
RevisionSort with descending order for the revision number property, i.e. more recent revisions
will come first.public static Sort.Direction getRevisionDirection(Sort sort)
Sort instance. Defaults to
Direction#ASC.sort - must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.