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 Detail

      • itemEquals

        static <C extends ContainerableValueSelector<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).