- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 43 of file TimeTracker.java.
◆ compareTo()
int org.turro.elephant.entities.db.TimeTracker.compareTo |
( |
TimeTracker |
o | ) |
|
Definition at line 137 of file TimeTracker.java.
138 int result = CompareUtil.compare(entityPath, o.entityPath);
140 result = CompareUtil.compare(trackedPath, o.trackedPath);
143 result = CompareUtil.compare(timeTrack, o.timeTrack);
◆ getEntity()
Definition at line 126 of file TimeTracker.java.
127 return Entities.getController(entityPath);
◆ getEntityPath()
String org.turro.elephant.entities.db.TimeTracker.getEntityPath |
( |
| ) |
|
◆ getHours()
double org.turro.elephant.entities.db.TimeTracker.getHours |
( |
| ) |
|
◆ getLocalDateTime()
LocalDateTime org.turro.elephant.entities.db.TimeTracker.getLocalDateTime |
( |
| ) |
|
Definition at line 107 of file TimeTracker.java.
108 return LocalDateTime.from(timeTrack.toInstant().atZone(ZoneId.systemDefault()));
◆ getTimeTrack()
Date org.turro.elephant.entities.db.TimeTracker.getTimeTrack |
( |
| ) |
|
◆ getTracked()
Definition at line 130 of file TimeTracker.java.
131 return Entities.getController(trackedPath);
◆ getTrackedPath()
String org.turro.elephant.entities.db.TimeTracker.getTrackedPath |
( |
| ) |
|
◆ getTrackType()
TimeTrackerType org.turro.elephant.entities.db.TimeTracker.getTrackType |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.elephant.entities.db.TimeTracker.isEmpty |
( |
| ) |
|
Definition at line 111 of file TimeTracker.java.
112 return Strings.isBlank(entityPath) || timeTrack ==
null || trackType ==
null;
◆ isPreviousValid()
boolean org.turro.elephant.entities.db.TimeTracker.isPreviousValid |
( |
TimeTracker |
previous | ) |
|
Definition at line 115 of file TimeTracker.java.
116 return previous ==
null || trackType.
isPreviousValid(previous.getTrackType());
boolean isPreviousValid(TimeTrackerType previousType)
◆ isToday()
boolean org.turro.elephant.entities.db.TimeTracker.isToday |
( |
| ) |
|
Definition at line 119 of file TimeTracker.java.
120 return timeTrack.toInstant().truncatedTo(ChronoUnit.DAYS)
121 .equals(Instant.now().truncatedTo(ChronoUnit.DAYS));
◆ isValidated()
boolean org.turro.elephant.entities.db.TimeTracker.isValidated |
( |
| ) |
|
◆ setEntityPath()
void org.turro.elephant.entities.db.TimeTracker.setEntityPath |
( |
String |
entityPath | ) |
|
◆ setHours()
void org.turro.elephant.entities.db.TimeTracker.setHours |
( |
double |
hours | ) |
|
◆ setTimeTrack()
void org.turro.elephant.entities.db.TimeTracker.setTimeTrack |
( |
Date |
timeTrack | ) |
|
◆ setTrackedPath()
void org.turro.elephant.entities.db.TimeTracker.setTrackedPath |
( |
String |
trackedPath | ) |
|
◆ setTrackType()
void org.turro.elephant.entities.db.TimeTracker.setTrackType |
( |
TimeTrackerType |
trackType | ) |
|
◆ setValidated()
void org.turro.elephant.entities.db.TimeTracker.setValidated |
( |
boolean |
validated | ) |
|
The documentation for this class was generated from the following file: