public final class Conditions extends Object
Modifier and Type | Method and Description |
---|---|
static AllOf |
allOf(ICondition... conditions)
Returns a
condition that is satisfied if and only if all of
the given conditions are satisfied. |
static AllOf |
allOf(String... properties)
Returns a
condition that is satisfied by a PropertySet that contains
all of the given properties. |
static AnyOf |
anyOf(ICondition... conditions)
Returns a
condition that is satisfied if and only if any of
the given conditions are satisfied. |
static AnyOf |
anyOf(String... properties)
Returns a
condition that is satisfied by a PropertySet that contains
any of the given properties. |
static Between |
between(String property,
int minimum,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
between a specified minimum (inclusive) and maximum (inclusive) number of instances of a property. |
static Between |
betweenExclusive(String property,
int minimum,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
between a specified minimum (exclusive) and maximum (exclusive) number of instances of a property. |
static Between |
betweenExclusiveMax(String property,
int minimum,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
between a specified minimum (inclusive) and maximum (exclusive) number of instances of a property. |
static Between |
betweenExclusiveMin(String property,
int minimum,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
between a specified minimum (exclusive) and maximum (inclusive) number of instances of a property. |
static Equals |
equalTo(String property,
int count)
Returns a
condition that is satisfied by a PropertySet that contains
a specified number of instances of a property. |
static ContainsAll |
has(String... properties)
Returns a
condition that is satisfied by a PropertySet that contains
all of the given properties. |
static ContainsAny |
hasAny(String... properties)
Returns a
condition that is satisfied by a PropertySet that contains
any of the given properties. |
static AssertLess |
lessThan(String property,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
less than a specified maximum that the number of instances of a property. |
static AssertMore |
moreThan(String property,
int minimum)
Returns a
condition that is satisfied by a PropertySet that contains
more than a specified minimum that the number of instances of a property. |
static Not |
not(ICondition... conditions)
Returns a
condition that is satisfied if and only if none of
the given conditions are satisfied. |
static Not |
not(String... properties)
Returns a
condition that is satisfied by a PropertySet that contains
none of the given properties. |
static AssertNotLess |
notLessThan(String property,
int minimum)
Returns a
condition that is satisfied by a PropertySet that contains
greater than or equal to a specified minimum that the number of instances of a property. |
static AssertNotMore |
notMoreThan(String property,
int maximum)
Returns a
condition that is satisfied by a PropertySet that contains
less than or equal to a specified maximum that the number of instances of a property. |
static Stream<String> |
propertiesReferenced(ICondition condition)
Returns the properties referenced by the given condition.
|
public static AllOf allOf(ICondition... conditions)
condition
that is satisfied if and only if all of
the given conditions are satisfied.public static AnyOf anyOf(ICondition... conditions)
condition
that is satisfied if and only if any of
the given conditions are satisfied.public static Not not(ICondition... conditions)
condition
that is satisfied if and only if none of
the given conditions are satisfied.public static ContainsAll has(String... properties)
condition
that is satisfied by a PropertySet
that contains
all of the given properties.public static ContainsAny hasAny(String... properties)
condition
that is satisfied by a PropertySet
that contains
any of the given properties.public static AllOf allOf(String... properties)
condition
that is satisfied by a PropertySet
that contains
all of the given properties.public static AnyOf anyOf(String... properties)
condition
that is satisfied by a PropertySet
that contains
any of the given properties.public static Not not(String... properties)
condition
that is satisfied by a PropertySet
that contains
none of the given properties.public static AssertMore moreThan(String property, int minimum)
condition
that is satisfied by a PropertySet
that contains
more than a specified minimum that the number of instances of a property.public static AssertLess lessThan(String property, int maximum)
condition
that is satisfied by a PropertySet
that contains
less than a specified maximum that the number of instances of a property.public static AssertNotMore notMoreThan(String property, int maximum)
condition
that is satisfied by a PropertySet
that contains
less than or equal to a specified maximum that the number of instances of a property.public static AssertNotLess notLessThan(String property, int minimum)
condition
that is satisfied by a PropertySet
that contains
greater than or equal to a specified minimum that the number of instances of a property.public static Between between(String property, int minimum, int maximum)
condition
that is satisfied by a PropertySet
that contains
between a specified minimum (inclusive) and maximum (inclusive) number of instances of a property.public static Between betweenExclusive(String property, int minimum, int maximum)
condition
that is satisfied by a PropertySet
that contains
between a specified minimum (exclusive) and maximum (exclusive) number of instances of a property.public static Between betweenExclusiveMin(String property, int minimum, int maximum)
condition
that is satisfied by a PropertySet
that contains
between a specified minimum (exclusive) and maximum (inclusive) number of instances of a property.public static Between betweenExclusiveMax(String property, int minimum, int maximum)
condition
that is satisfied by a PropertySet
that contains
between a specified minimum (inclusive) and maximum (exclusive) number of instances of a property.public static Equals equalTo(String property, int count)
condition
that is satisfied by a PropertySet
that contains
a specified number of instances of a property.public static Stream<String> propertiesReferenced(ICondition condition)
Copyright © 2024 The Cornutum Project. All rights reserved.