Class CycleInfo
java.lang.Object
org.deltava.beans.navdata.CycleInfo
- All Implemented Interfaces:
Serializable
,Comparable<CycleInfo>
,ViewEntry
,Cacheable
A bean to store Navigation Data cycle information.
- Since:
- 5.1
- Version:
- 8.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheKey()
Returns the cache key for this object.int
static CycleInfo
Guesses at the current cycle based on year and date.getID()
Returns the Cycle ID.Returns the cycle release date.Returns the CSS class for this object if rendered in a view table.int
Returns the sequence number.int
getYear()
Returns the year.int
hashCode()
boolean
isLoaded()
Returns whether this cycle is currently loaded.void
setLoaded
(boolean isLoaded) Sets whether this cycle is currently loaded.void
setReleasedOn
(Instant dt) Updates the cycle release datae.toString()
-
Constructor Details
-
CycleInfo
Creates the cycle information bean.- Parameters:
cycleID
- the navigqation cycle ID
-
CycleInfo
-
-
Method Details
-
getYear
public int getYear()Returns the year.- Returns:
- the year
-
getSequence
public int getSequence()Returns the sequence number.- Returns:
- the sequence
-
getID
-
getReleasedOn
-
isLoaded
public boolean isLoaded()Returns whether this cycle is currently loaded.- Returns:
- TRUE if loaded, otherwise FALSE
-
setReleasedOn
Updates the cycle release datae.- Parameters:
dt
- the release date
-
setLoaded
public void setLoaded(boolean isLoaded) Sets whether this cycle is currently loaded.- Parameters:
isLoaded
- TRUE if loaded, otherwise FALSE
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-
cacheKey
-
toString
-
hashCode
-
getCurrent
Guesses at the current cycle based on year and date.- Returns:
- a CycleInfo bean
-