Package | Description |
---|---|
org.wamblee.collections |
Collection utilities.
|
org.wamblee.conditions |
This package provides some basic support classes for checking boolean conditions on objects.
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
CollectionFilter.filter(Collection<T> aFrom,
Collection<T> aTo,
Condition<T> aCondition)
Filters a collection by adding all elements in the from collection that
satisfy a given condition to the to collection.
|
Modifier and Type | Class and Description |
---|---|
class |
AndCondition<T>
Represents a logical and of different boolean conditions.
|
class |
FixedCondition<T>
Condition which always returns a fixed value.
|
class |
OrCondition<T>
Represents a logical or of different boolean conditions.
|
class |
PropertyRegexCondition<T>
Condition to check whether a given property of an object matches a certain
regular expression.
|
Constructor and Description |
---|
AndCondition(Condition<T> aCondition1,
Condition<T> aCondition2)
Constructs the condition.
|
AndCondition(Condition<T> aCondition1,
Condition<T> aCondition2)
Constructs the condition.
|
OrCondition(Condition<T> aCondition1,
Condition<T> aCondition2)
Constructs the condition.
|
OrCondition(Condition<T> aCondition1,
Condition<T> aCondition2)
Constructs the condition.
|
Constructor and Description |
---|
AndCondition(List<Condition<T>> aConditions)
Constructs the and condition.
|
OrCondition(List<Condition<T>> aConditions)
Constructs the or condition.
|
Copyright © 2024. All rights reserved.