java.time.Instant )
Note
By implementing the java.util.SortedSet interface period lists will always be sorted according
to natural ordering.
| Modifier and Type | Field and Description |
|---|---|
| private final transient CalendarDateFormat | |
| private final Set | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final PeriodList | |
| public final PeriodList | Returns: a period list instancea list of periods to add periods)A convenience method that combines all the periods in the specified list to this list. |
| public PeriodList | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public Set | |
| public int | |
| public final PeriodList | |
| public static <T extends Temporal> PeriodList | |
| public static <T extends Temporal> PeriodList | |
| public final PeriodList | |
| public final PeriodList | Returns: a period lista list of periods to subtract from this list subtractions)Subtracts the intersection of this list with the specified list of periods from this list and returns the results as a new period list. |
| public List | |
| public String | |
| public String |
| dateFormat | back to summary |
|---|---|
| private final transient CalendarDateFormat dateFormat | |
| periods | back to summary |
|---|---|
| private final Set<Period<T>> periods | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| PeriodList | back to summary |
|---|---|
| public PeriodList() Default constructor. | |
| PeriodList | back to summary |
|---|---|
| public PeriodList(CalendarDateFormat dateFormat) | |
| PeriodList | back to summary |
|---|---|
| public PeriodList(Collection<Period<T>> periods) | |
| PeriodList | back to summary |
|---|---|
| public PeriodList(Collection<Period<T>> periods, CalendarDateFormat dateFormat) | |
| PeriodList | back to summary |
|---|---|
| public PeriodList(Interval[] intervals) | |
| add | back to summary |
|---|---|
| public final PeriodList Add a period to the list.
| |
| add | back to summary |
|---|---|
| public final PeriodList A convenience method that combines all the periods in the specified list to this list. The result returned is a new PeriodList instance, except where no periods are specified in the arguments. In such cases this instance is returned. Normalisation is also performed automatically after all periods have been added.
| |
| addAll | back to summary |
|---|---|
| public PeriodList | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getPeriods | back to summary |
|---|---|
| public Set | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| normalise | back to summary |
|---|---|
| public final PeriodList Returns a normalised version of this period list. Normalisation includes combining overlapping periods, removing periods contained by other periods, combining adjacent periods, and removing periods that consume no time. Note If the period list is already normalised then this period list is returned.
| |
| parse | back to summary |
|---|---|
| public static <T extends Temporal> PeriodList Parses the specified string representation to create a list of periods.
| |
| parse | back to summary |
|---|---|
public static <T extends Temporal> PeriodList
| |
| remove | back to summary |
|---|---|
| public final PeriodList Remove a period from the list.
| |
| subtract | back to summary |
|---|---|
| public final PeriodList Subtracts the intersection of this list with the specified list of periods from this list and returns the results as a new period list. If no intersection is identified this list is returned.
| |
| toIntervalList | back to summary |
|---|---|
| public List | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toString | back to summary |
|---|---|
| public String toString(ZoneId zoneId) | |