Package com.evolveum.midpoint.prism
Interface ValueSelector<V extends PrismValue>
-
- All Superinterfaces:
Predicate<V>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ValueSelector<V extends PrismValue> extends Predicate<V>
Selects a value from multivalued item (property, container, reference). A typical use is to select among PrismContainerValues by checking some sub-item ("key") value. TODO Find a better name. "ValueMatcher" is already used in a different context.
-
-
Method Summary
Static Methods Modifier and Type Method Description static <C extends Containerable>
ValueSelector<PrismContainerValue<C>>itemEquals(ItemName itemName, Object expectedValue)
Matches PrismContainerValue if it has single-valued sub-item named "itemName" with the value of "expectedValue" (or if the sub-item is not present and expectedValue is null).static <T> ValueSelector<PrismPropertyValue<T>>
origEquals(T expectedValue)
static <T> ValueSelector<PrismPropertyValue<T>>
valueEquals(T expectedValue)
-
-
-
Method Detail
-
itemEquals
static <C extends Containerable> ValueSelector<PrismContainerValue<C>> itemEquals(ItemName itemName, Object expectedValue)
Matches PrismContainerValue if it has single-valued sub-item named "itemName" with the value of "expectedValue" (or if the sub-item is not present and expectedValue is null).
-
valueEquals
static <T> ValueSelector<PrismPropertyValue<T>> valueEquals(@NotNull T expectedValue)
-
origEquals
static <T> ValueSelector<PrismPropertyValue<T>> origEquals(@NotNull T expectedValue)
-
-