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, setValueMethods inherited from class org.deltava.beans.DatabaseBean
getHexID, getID, setID, validateID, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.deltava.beans.Auditable
getAuditTypeMethods 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:
toStringin classAccomplishment
-
compareTo
Compares two DatedAccomplishments by comparing their accomplishment date/times. If they are equal, it sorts using Accomplishment's native comparator.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classAccomplishment
-