Class TimeGrain
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.meetingscheduling.domain.TimeGrain
- All Implemented Interfaces:
Comparable<TimeGrain>,Labeled
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intTime granularity is 15 minutes (which is often recommended when dealing with humans for practical purposes).Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetDate()getDay()intgetLabel()intgetTime()inthashCode()voidvoidsetGrainIndex(int grainIndex) voidsetStartingMinuteOfDay(int startingMinuteOfDay) toString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Field Details
-
GRAIN_LENGTH_IN_MINUTES
public static final int GRAIN_LENGTH_IN_MINUTESTime granularity is 15 minutes (which is often recommended when dealing with humans for practical purposes).- See Also:
-
-
Constructor Details
-
TimeGrain
public TimeGrain() -
TimeGrain
-
-
Method Details
-
getGrainIndex
public int getGrainIndex() -
setGrainIndex
public void setGrainIndex(int grainIndex) -
getDay
-
setDay
-
getStartingMinuteOfDay
public int getStartingMinuteOfDay() -
setStartingMinuteOfDay
public void setStartingMinuteOfDay(int startingMinuteOfDay) -
getDate
-
getTime
-
getDateTime
-
getTimeString
-
getDateTimeString
-
getLabel
-
toString
- Overrides:
toStringin classAbstractPersistable
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<TimeGrain>
-