public class Revisions<N extends Number & Comparable<N>,T> extends Object implements Iterable<Revision<N,T>>
List
of Revisions
allowing to canonically access the latest revision.
Allows iterating over the underlying Revisions
starting with older revisions.Constructor and Description |
---|
Revisions(List<? extends Revision<N,T>> revisions)
Creates a new
Revisions instance containing the given revisions. |
Modifier and Type | Method and Description |
---|---|
List<Revision<N,T>> |
getContent()
Returns the content of the
Revisions instance. |
Revision<N,T> |
getLatestRevision()
Returns the latest revision of the revisions backing the wrapper independently of the order.
|
Iterator<Revision<N,T>> |
iterator() |
Revisions<N,T> |
reverse()
Reverses the current
Revisions . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Revision<N,T> getLatestRevision()
public Revisions<N,T> reverse()
Revisions
. By default this will return the revisions with the latest revision first.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.