true if the return value of the specified function is equal to value.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final Supplier | |
| private final String | |
| private final String | |
| private final Function | |
| private final T |
| Access | Constructor and Description |
|---|---|
| private | FunctionExpression(String featureName, String featureValue, Supplier<TriState> contextFreeFunction, Function<MediaQueryContext, T> function, T value, ContextAwareness... contextAwareness)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public TriState | evaluate()
Implements com. Attempts to determine the result of this media query without a context, and returns |
| public boolean | evaluate(MediaQueryContext context)
Implements com. Evaluates this media query against the provided context. |
| public int | getContextAwareness()
Implements com. Gets the context awareness flags of this media query, indicating which aspects of the media query context are probed by the query. |
| public String | |
| public String | |
| public int | |
| public static <T> FunctionExpression | of(String
the feature name featureName, String the feature value, or featureValue, Function<MediaQueryContext, T> null to indicate a boolean contextthe evaluation function function, T the expected return value of the function value, ContextAwareness... the context awareness of the function, see contextAwareness)MediaQuery#getContextAwareness()Returns an interned |
| public static <T> FunctionExpression | of(String
the feature name featureName, String the feature value, or featureValue, Supplier<TriState> null to indicate a boolean contextthe context-free evaluation function, must never return contextFreeFunction, Function<MediaQueryContext, T> nullthe evaluation function function, T the expected return value of the function value, ContextAwareness... the context awareness of the function, see contextAwareness)MediaQuery#getContextAwareness()Returns an interned |
| public String |
| contextAwareness | back to summary |
|---|---|
| private final int contextAwareness | |
| contextFreeFunction | back to summary |
|---|---|
| private final Supplier<TriState> contextFreeFunction | |
| featureName | back to summary |
|---|---|
| private final String featureName | |
| featureValue | back to summary |
|---|---|
| private final String featureValue | |
| function | back to summary |
|---|---|
| private final Function<MediaQueryContext, T> function | |
| value | back to summary |
|---|---|
| private final T value | |
| FunctionExpression | back to summary |
|---|---|
| private FunctionExpression(String featureName, String featureValue, Supplier<TriState> contextFreeFunction, Function<MediaQueryContext, T> function, T value, ContextAwareness... contextAwareness) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| evaluate | back to summary |
|---|---|
| public TriState evaluate() Implements com. Doc from com. Attempts to determine the result of this media query without a context, and returns
| |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(MediaQueryContext context) Implements com. Doc from com. Evaluates this media query against the provided context.
| |
| getContextAwareness | back to summary |
|---|---|
| public int getContextAwareness() Implements com. Doc from com. Gets the context awareness flags of this media query, indicating which aspects of the media query context are probed by the query.
| |
| getFeatureName | back to summary |
|---|---|
| public String getFeatureName() | |
| getFeatureValue | back to summary |
|---|---|
| public String getFeatureValue() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| of | back to summary |
|---|---|
| public static <T> FunctionExpression Returns an interned
| |
| of | back to summary |
|---|---|
| public static <T> FunctionExpression Returns an interned
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |