public class TemporalConstraints extends Object
| Modifier and Type | Field and Description |
|---|---|
static TemporalRange |
FULL_RANGE |
| Constructor and Description |
|---|
TemporalConstraints() |
TemporalConstraints(List<TemporalRange> ranges,
String name) |
TemporalConstraints(String name) |
TemporalConstraints(TemporalRange range,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(TemporalRange range) |
void |
empty() |
boolean |
equals(Object obj) |
static TemporalConstraints |
findIntersections(TemporalConstraints sideL,
TemporalConstraints sideR) |
void |
fromBinary(byte[] data) |
TemporalRange |
getEndRange() |
Date |
getMaxOr(Date max,
int exclusivityIncrement) |
Date |
getMinOr(Date min,
int exclusivityIncrement) |
String |
getName() |
List<TemporalRange> |
getRanges() |
TemporalRange |
getStartRange() |
int |
hashCode() |
boolean |
isEmpty() |
static Date |
max(Date one,
Date two) |
static TemporalConstraints |
merge(TemporalConstraints left,
TemporalConstraints right) |
static Date |
min(Date one,
Date two) |
void |
replaceWithIntersections(TemporalConstraints constraints) |
void |
replaceWithMerged(TemporalConstraints constraints) |
byte[] |
toBinary() |
String |
toString() |
public static final TemporalRange FULL_RANGE
public TemporalConstraints()
public TemporalConstraints(String name)
public TemporalConstraints(List<TemporalRange> ranges, String name)
public TemporalConstraints(TemporalRange range, String name)
public String getName()
public void empty()
public void replaceWithIntersections(TemporalConstraints constraints)
public void replaceWithMerged(TemporalConstraints constraints)
public void add(TemporalRange range)
public boolean isEmpty()
public TemporalRange getEndRange()
public TemporalRange getStartRange()
public List<TemporalRange> getRanges()
public static final TemporalConstraints findIntersections(TemporalConstraints sideL, TemporalConstraints sideR)
public static final TemporalConstraints merge(TemporalConstraints left, TemporalConstraints right)
public byte[] toBinary()
public void fromBinary(byte[] data)
Copyright © 2013–2021. All rights reserved.