Class DatedAccomplishment
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.stats.Accomplishment
org.deltava.beans.stats.DatedAccomplishment
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Object>
,Auditable
,ComboAlias
,IDBean
,RGBColor
,ViewEntry
,Cacheable
A bean to combine an Accomplishment with an Achievement date.
- Since:
- 3.2
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDatedAccomplishment
(int pilotID, Instant dt, Accomplishment a) Creates the bean. -
Method Summary
Methods inherited from class org.deltava.beans.stats.Accomplishment
cacheKey, equals, getActive, getAlwaysDisplay, getAuditID, getChoices, getColor, getComboAlias, getComboName, getName, getOwner, getPilots, getRowClassName, getUnit, getValue, hashCode, isCrossApp, renameChoice, setActive, setAlwaysDisplay, setChoices, setColor, setName, setOwner, setPilots, setUnit, setValue
Methods inherited from class org.deltava.beans.DatabaseBean
getHexID, getID, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType
Methods inherited from interface org.deltava.beans.RGBColor
getHexColor
-
Constructor Details
-
DatedAccomplishment
Creates the bean.- Parameters:
pilotID
- the Pilot's database IDdt
- the date/time the Accomplishment was achieved.a
- the Accomplishment
-
-
Method Details
-
getPilotID
public int getPilotID()Returns the Pilot's database ID.- Returns:
- the ID or zero if none
-
getDate
Returns the date the Accomplishment was achieved.- Returns:
- the date/time of the Accomplishment
-
toString
- Overrides:
toString
in classAccomplishment
-
compareTo
Compares two DatedAccomplishments by comparing their accomplishment date/times. If they are equal, it sorts using Accomplishment's native comparator.- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classAccomplishment
-