Package org.duracloud.snapshot.db.model
Class SnapshotHistory
java.lang.Object
org.duracloud.snapshot.db.model.BaseEntity
org.duracloud.snapshot.db.model.SnapshotHistory
- All Implemented Interfaces:
Comparator<SnapshotHistory>,Identifiable
- Author:
- Gad Krumholz Date: May 19, 2015
-
Field Summary
Fields inherited from class org.duracloud.snapshot.db.model.BaseEntity
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(SnapshotHistory o1, SnapshotHistory o2) voidsetHistory(String history) voidsetHistoryDate(Date historyDate) voidsetSnapshot(Snapshot snapshot) toString()Methods inherited from class org.duracloud.snapshot.db.model.BaseEntity
equals, getId, getModified, hashCode, setId, setModifiedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SnapshotHistory
public SnapshotHistory()
-
-
Method Details
-
getHistoryDate
- Returns:
- the historyDate
-
setHistoryDate
- Parameters:
historyDate- - the historyDate to set
-
getSnapshot
- Returns:
- the snapshot
-
setSnapshot
- Parameters:
snapshot- the snapshot to set
-
getHistory
- Returns:
- the history
-
setHistory
- Parameters:
history- the history to set
-
compare
- Specified by:
comparein interfaceComparator<SnapshotHistory>
-
toString
- Overrides:
toStringin classBaseEntity
-