public class EntityWithVersion<E extends WithId> extends Object implements WithIdAndVersion
WithIdAndVersion.DefaultWithIdAndVersion
Modifier and Type | Field and Description |
---|---|
protected E |
entity |
ID_COMPARATOR
Constructor and Description |
---|
EntityWithVersion(E entity,
Long version) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
E |
getEntity() |
Long |
getId() |
Long |
getVersion() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fromDocument, fromDocuments, of
public Long getId()
public E getEntity()
public Long getVersion()
getVersion
in interface WithIdAndVersion
Copyright © 2002-2024 Atlassian. All Rights Reserved.