public final class AvailabilityTable extends ArrayList<Availability>
Modifier and Type | Field and Description |
---|---|
static LocalDateTime |
END_DATE_NA
This value differs from the one in LocalDateTimeHelper to allow us to deal with inconsistent values
used by Microsoft Project.
|
modCount
Constructor and Description |
---|
AvailabilityTable() |
Modifier and Type | Method and Description |
---|---|
LocalDateTime |
availableFrom(LocalDateTime date)
Calculate the Available From attribute for the given date.
|
LocalDateTime |
availableTo(LocalDateTime date)
Calculate the Available To attribute for the given date.
|
Availability |
getEntryByDate(LocalDateTime date)
Retrieve the table entry valid for the supplied date.
|
boolean |
hasDefaultDateRange()
Determine if this table only contains a single entry with empty start and end dates.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public static final LocalDateTime END_DATE_NA
public Availability getEntryByDate(LocalDateTime date)
date
- required datepublic boolean hasDefaultDateRange()
public LocalDateTime availableFrom(LocalDateTime date)
date
- target datepublic LocalDateTime availableTo(LocalDateTime date)
date
- target dateCopyright © 2000–2024 Packwood Software. All rights reserved.