|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.Feature<T>
public class Feature<T>
Represents a feature or capability in the system and can answer the question of whether the feature is enabled in an instance of a given context, which is specified by the generic T parameter.
Constructor Summary | |
---|---|
Feature(java.lang.String featureName,
Predicate<T> predicate)
|
Method Summary | |
---|---|
java.lang.String |
featureName()
Return name of feature |
Predicate<T> |
getPredicate()
The predicate to evaluate to determine if the feature is enabled. |
boolean |
isEnabled(T t)
Use information from T and the implementation of the predicate to calculate whether the feature is enabled. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Feature(java.lang.String featureName, Predicate<T> predicate)
Method Detail |
---|
public final java.lang.String featureName()
public boolean isEnabled(T t)
t
-
public Predicate<T> getPredicate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |