| Package | Description |
|---|---|
| ch.bfh.due1.time | |
| ch.bfh.due1.time.pojo |
| Modifier and Type | Method and Description |
|---|---|
TimeSlot |
TimeSlotFactory.createTimeSlot(LocalDateTime start,
LocalDateTime end)
Constructs a time slot object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
TimeSlot.compareTo(TimeSlot ts)
Compares this time slot with another one.
|
boolean |
TimeSlot.endsAfter(TimeSlot ts)
Checks if this time slot ends after the given time slot.
|
boolean |
TimeSlot.endsBefore(TimeSlot ts)
Checks if this time slot ends before the given time slot.
|
boolean |
TimeSlot.exactlyMatches(TimeSlot ts)
Checks if this time slot exactly matches the given time slot.
|
boolean |
TimeSlot.includes(TimeSlot ts)
Returns true iff this.includes(ts.start()) && this.includes(ts.end()).
|
boolean |
TimeSlot.overlaps(TimeSlot ts)
Returns true iff ts.includes(this.getStart()) OR
ts.includes(this.getFinish()) OR this.includes(ts).
|
boolean |
TimeSlot.startsAfter(TimeSlot ts)
Checks if this time slot starts after the given time slot.
|
boolean |
TimeSlot.startsBefore(TimeSlot ts)
Checks if this date range starts before the given date range.
|
boolean |
TimeSlot.strictlyIncludes(TimeSlot ts)
Checks if this time slot strictly includes the given time slot.
|
| Modifier and Type | Class and Description |
|---|---|
class |
TimeSlotImpl |
| Modifier and Type | Method and Description |
|---|---|
TimeSlot |
TimeSlotFactoryImpl.createTimeSlot(LocalDateTime start,
LocalDateTime end)
Creates a time slot POJO instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
TimeSlotImpl.compareTo(TimeSlot other) |
boolean |
TimeSlotImpl.endsAfter(TimeSlot other) |
boolean |
TimeSlotImpl.endsBefore(TimeSlot other) |
boolean |
TimeSlotImpl.exactlyMatches(TimeSlot other) |
boolean |
TimeSlotImpl.includes(TimeSlot other)
Returns true iff this.includes(ts.start()) && this.includes(ts.end()).
|
boolean |
TimeSlotImpl.overlaps(TimeSlot other)
Returns true iff ts.includes(this.getStart()) OR
ts.includes(this.getFinish()) OR this.includes(ts).
|
boolean |
TimeSlotImpl.startsAfter(TimeSlot other) |
boolean |
TimeSlotImpl.startsBefore(TimeSlot other) |
boolean |
TimeSlotImpl.strictlyIncludes(TimeSlot other) |
Copyright © 2016 BFH. All rights reserved.