public class TimeGrain extends AbstractPersistable implements Labeled
Modifier and Type | Field and Description |
---|---|
static int |
GRAIN_LENGTH_IN_MINUTES
Time granularity is 15 minutes (which is often recommended when dealing with humans for practical purposes).
|
id
Constructor and Description |
---|
TimeGrain() |
Modifier and Type | Method and Description |
---|---|
LocalDate |
getDate() |
LocalDateTime |
getDateTime() |
String |
getDateTimeString() |
Day |
getDay() |
int |
getGrainIndex() |
String |
getLabel() |
int |
getStartingMinuteOfDay() |
LocalTime |
getTime() |
String |
getTimeString() |
void |
setDay(Day day) |
void |
setGrainIndex(int grainIndex) |
void |
setStartingMinuteOfDay(int startingMinuteOfDay) |
String |
toString() |
getId, setId
public static final int GRAIN_LENGTH_IN_MINUTES
public int getGrainIndex()
public void setGrainIndex(int grainIndex)
public Day getDay()
public void setDay(Day day)
public int getStartingMinuteOfDay()
public void setStartingMinuteOfDay(int startingMinuteOfDay)
public LocalDate getDate()
public LocalTime getTime()
public LocalDateTime getDateTime()
public String getTimeString()
public String getDateTimeString()
public String toString()
toString
in class AbstractPersistable
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.