Version

public class Version

Plain old java object (POJO) for an entity’s version.

Author:

Timm Fitschen

Constructors

Version

public Version(String id, long seconds, int nanos)

Version

public Version(String id, UTCDateTime date, String username, String realm)

Version

public Version(String id)

Version

public Version()

Version

public Version(String id, UTCDateTime timestamp)

Methods

getDate

public UTCDateTime getDate()

getId

public String getId()

getPredecessors

public List<Version> getPredecessors()

getRealm

public String getRealm()

getSuccessors

public List<Version> getSuccessors()

getUsername

public String getUsername()

isCompleteHistory

public boolean isCompleteHistory()

isHead

public boolean isHead()

setCompleteHistory

public void setCompleteHistory(boolean isCompleteHistory)

setDate

public void setDate(UTCDateTime date)

setDate

public void setDate(Long timestamp)

setHead

public void setHead(boolean isHead)

setId

public void setId(String id)

setPredecessors

public void setPredecessors(List<Version> predecessors)

setRealm

public void setRealm(String realm)

setSuccessors

public void setSuccessors(List<Version> successors)

setUsername

public void setUsername(String username)