| Package | Description |
|---|---|
| io.buybrain.util.time |
| Modifier and Type | Method and Description |
|---|---|
static List<Period> |
Periods.intersect(List<Period> a,
List<Period> b)
Get the intersection between two lists of periods.
|
static Optional<Period> |
Periods.intersect(Period a,
Period b)
Get the intersection (overlapping period) of two periods
|
static List<Period> |
Periods.merge(List<Period> periods)
Merge a list of periods such that periods that are overlapping or adjacent are collapsed into a single period
|
static List<Period> |
Periods.merge(List<Period> a,
List<Period> b)
Merge two lists of periods such that periods that are overlapping or adjacent are collapsed into a single period
|
static List<Period> |
Periods.subtract(List<Period> subjects,
Period toSubtract)
Remove one period from a list of periods according to
Periods.subtract(Period, Period) |
static List<Period> |
Periods.subtract(Period subject,
Period toSubtract)
Remove one period from another period.
|
| Modifier and Type | Method and Description |
|---|---|
static Optional<Period> |
Periods.intersect(Period a,
Period b)
Get the intersection (overlapping period) of two periods
|
static List<Period> |
Periods.subtract(List<Period> subjects,
Period toSubtract)
Remove one period from a list of periods according to
Periods.subtract(Period, Period) |
static List<Period> |
Periods.subtract(Period subject,
Period toSubtract)
Remove one period from another period.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Period> |
Periods.intersect(List<Period> a,
List<Period> b)
Get the intersection between two lists of periods.
|
static List<Period> |
Periods.intersect(List<Period> a,
List<Period> b)
Get the intersection between two lists of periods.
|
static List<Period> |
Periods.merge(List<Period> periods)
Merge a list of periods such that periods that are overlapping or adjacent are collapsed into a single period
|
static List<Period> |
Periods.merge(List<Period> a,
List<Period> b)
Merge two lists of periods such that periods that are overlapping or adjacent are collapsed into a single period
|
static List<Period> |
Periods.merge(List<Period> a,
List<Period> b)
Merge two lists of periods such that periods that are overlapping or adjacent are collapsed into a single period
|
static List<Period> |
Periods.subtract(List<Period> subjects,
Period toSubtract)
Remove one period from a list of periods according to
Periods.subtract(Period, Period) |
Copyright © 2018. All rights reserved.