Package org.openmuc.jeebus.spine.spi
Interface AdditionalSelectorCondition<DATA,SELECTOR>
-
- Type Parameters:
DATA- type of data that this condition checksSELECTOR- type of selector that this condition is for
public interface AdditionalSelectorCondition<DATA,SELECTOR>This functional interface is to be used byAdditionalSelectorConditions.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 exampleIncentiveListDataSelectorsType.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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisSelected(DATA data, SELECTOR selector)
-