|
Spring Data Core | |||||||||
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<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. |
RevisionMetadata<N> |
getMetadata()
Returns the RevisionMetadata for the current Revision . |
org.joda.time.DateTime |
getRevisionDate()
Returns the revision date of the revision. |
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<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 org.joda.time.DateTime getRevisionDate()
public T getEntity()
public RevisionMetadata<N> getMetadata()
RevisionMetadata
for the current Revision
.
public int compareTo(Revision<N,?> that)
compareTo
in interface Comparable<Revision<N extends Number & Comparable<N>,?>>
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Spring Data Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |