DATACMNS-135 - Added accessor for the underlying content to Revisions.

This commit is contained in:
Oliver Gierke
2012-03-21 12:38:12 +01:00
parent 9e44d587f8
commit 8e52d75ca9

View File

@@ -90,4 +90,13 @@ public class Revisions<N extends Number & Comparable<N>, T> implements Iterable<
public Iterator<Revision<N, T>> iterator() {
return revisions.iterator();
}
/**
* Returns the content of the {@link Revisions} instance.
*
* @return
*/
public List<Revision<N, T>> getContent() {
return Collections.unmodifiableList(revisions);
}
}