| Package | Description |
|---|---|
| org.gcube.data.trees.constraints | |
| org.gcube.data.trees.patterns |
| Modifier and Type | Class and Description |
|---|---|
class |
After
Accepts
Calendar values that follow a given one. |
class |
AfterDate
Accepts
Date values that follow a given one. |
class |
All<T>
Accepts values that have the same type and satisfy one ore more constraints.
|
class |
AnyValue
Accepts any value.
|
class |
BaseConstraint<T>
Base implementation of
Constraint. |
class |
Before
Accepts
Calendar values that precede a given one. |
class |
BeforeDate
Accepts
Date values that precede a given one. |
class |
Either<T>
Accepts values that satisfy at least one of two constraints.
|
class |
Less
Constrains
Double values to be strictly smaller than a given one. |
class |
Match
Accepts values that match a given regular expression when converted to
String. |
class |
More
Constraints values of type
Double to be strictly greater than a given one. |
class |
Not<T>
Constrains values to not satisfy a given constraint.
|
class |
Same<T>
Constrains values to be equal to a given one (in the
Object.equals(Object) sense). |
| Modifier and Type | Method and Description |
|---|---|
List<Constraint<T>> |
Either.constraints()
Returns the constraints combined in this instance.
|
List<Constraint<T>> |
All.constraints() |
| Constructor and Description |
|---|
All(Constraint<T> c1,
Constraint<T> c2)
Creates an instance from two constraints.
|
All(Constraint<T> c1,
Constraint<T> c2)
Creates an instance from two constraints.
|
Either(Constraint<T> c1,
Constraint<T> c2)
Creates an instance from two constraints.
|
Either(Constraint<T> c1,
Constraint<T> c2)
Creates an instance from two constraints.
|
Not(Constraint<T> c)
Creates an instance from one more constraints.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LeafPattern<T,C extends Constraint<? super T>>
|
| Modifier and Type | Field and Description |
|---|---|
protected C |
LeafPattern.constraint |
| Modifier and Type | Method and Description |
|---|---|
static <T> All<T> |
Patterns.all(Constraint<T> constraint1,
Constraint<T> constraint2)
Returns an
All constraint that combines two or more Constraints. |
static <T> All<T> |
Patterns.all(Constraint<T> constraint1,
Constraint<T> constraint2)
Returns an
All constraint that combines two or more Constraints. |
static BoolPattern |
Patterns.bool(Constraint<? super Boolean> c)
Returns a
BoolPattern with a given constraint. |
static CalendarPattern |
Patterns.calendar(Constraint<? super Calendar> c)
Returns a
CalendarPatternwith a given constraint. |
static DatePattern |
Patterns.date(Constraint<? super Date> c)
Returns a
DatePattern with a given constraint. |
static <T> Either<T> |
Patterns.either(Constraint<T> constraint1,
Constraint<T> constraint2)
Returns an
Either constraint that combines two or more Constraints. |
static <T> Either<T> |
Patterns.either(Constraint<T> constraint1,
Constraint<T> constraint2)
Returns an
Either constraint that combines two or more Constraints. |
static <T> Not<T> |
Patterns.not(Constraint<T> constraint)
Returns an
Not constraint for a given constraint. |
static NumPattern |
Patterns.num(Constraint<? super Double> c)
Returns a
NumPattern with a given constraint. |
static TextPattern |
Patterns.text(Constraint<? super String> constraint)
Returns a
TextPattern with a given constraint. |
static URIPattern |
Patterns.uri(Constraint<? super URI> c)
Returns a
URIPattern with a given constraint. |
| Constructor and Description |
|---|
BoolPattern(Constraint<? super Boolean> constraint)
Creates an instance with a given constraint.
|
CalendarPattern(Constraint<? super Calendar> c)
Creates an instance with a given constraint.
|
DatePattern(Constraint<? super Date> c)
Creates an instance with a given constraint.
|
NumPattern(Constraint<? super Double> constraint)
Creates an instance with a given constraint.
|
TextPattern(Constraint<? super String> c)
Creates an instance with a given constraint.
|
URIPattern(Constraint<? super URI> c)
Creates an instance with a given constraint.
|
Copyright © 2018. All Rights Reserved.