|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.history.Revision<N,T>
public final class Revision<N extends Number & Comparable<N>,T>
Wrapper to contain RevisionMetadata as well as the revisioned entity.
| Constructor Summary | |
|---|---|
Revision(RevisionMetadata<? extends N> metadata,
T entity)
Creates a new Revision consisting of the given RevisionMetadata and entity. |
|
| Method Summary | |
|---|---|
int |
compareTo(Revision<N,?> that)
|
boolean |
equals(Object obj)
|
T |
getEntity()
Returns the underlying entity. |
N |
getRevisionNumber()
Returns the revision number of the revision. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Revision(RevisionMetadata<? extends N> metadata,
T entity)
Revision consisting of the given RevisionMetadata and entity.
metadata - must not be null.entity - must not be null.| Method Detail |
|---|
public N getRevisionNumber()
public T getEntity()
public int compareTo(Revision<N,?> that)
compareTo in interface Comparable<Revision<N extends Number & Comparable<N>,?>>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Spring Data Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||