Interface AdditionalSelectorCondition<DATA,​SELECTOR>

  • Type Parameters:
    DATA - type of data that this condition checks
    SELECTOR - type of selector that this condition is for

    public interface AdditionalSelectorCondition<DATA,​SELECTOR>
    This functional interface is to be used by AdditionalSelectorConditions.register(java.lang.Class<DATA>, java.lang.Class<SELECTOR>, org.openmuc.jeebus.spine.spi.AdditionalSelectorCondition<DATA, SELECTOR>) if an additional condition is needed to check if data matches a selector. Almost all selector attributes are used to check if the respective data value is equal to the selector value. There are some selector attributes that use different semantics like for example IncentiveListDataSelectorsType.getTimestampInterval() which holds a time interval that cannot simply be checked by equality. In such a case implement this interface to return true if the given data D matches the given selector S explicitly for this condition. All other attributes will still be checked by the filter method.
    • Method Detail

      • isSelected

        boolean isSelected​(DATA data,
                           SELECTOR selector)