null to indicate a boolean context
true if the return value of the specified function is equal to value.
| Modifier and Type | Field and Description |
|---|---|
| private final String | featureName
Record Component accessed by featureName(). the feature name |
| private final String | featureValue
Record Component accessed by featureValue(). the feature value, ornull to indicate a boolean context
|
| private final Function | function
Record Component accessed by function(). the evaluation function |
| private final T |
| Access | Constructor and Description |
|---|---|
| public | FunctionExpression(String featureName, String featureValue, Function<MediaQueryContext, T> function, T value)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public boolean | evaluate(MediaQueryContext context)
Implements com. Evaluates this media query against the provided context. |
| public String | |
| public String | featureValue()
Record Component getter of featureValue.
Record Component
the feature value, or |
| public Function | |
| public int | |
| public String | toString()
Implements abstract java. Returns a string representation of the record. |
| public T |
| featureName | back to summary |
|---|---|
| private final String featureName Record Component accessed by featureName(). the feature name | |
| featureValue | back to summary |
|---|---|
| private final String featureValue Record Component accessed by featureValue(). the feature value, or | |
| function | back to summary |
|---|---|
| private final Function<MediaQueryContext, T> function Record Component accessed by function(). the evaluation function | |
| value | back to summary |
|---|---|
| private final T value Record Component accessed by value(). the expected return value of the function | |
| FunctionExpression | back to summary |
|---|---|
| public FunctionExpression(String featureName, String featureValue, Function<MediaQueryContext, T> function, T value) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(MediaQueryContext context) Implements com. Doc from com. Evaluates this media query against the provided context.
| |
| featureName | back to summary |
|---|---|
| public String featureName() Record Component getter of featureName.
| |
| featureValue | back to summary |
|---|---|
| public String featureValue() Record Component getter of featureValue.
| |
| function | back to summary |
|---|---|
| public Function Record Component getter of function.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| value | back to summary |
|---|---|
| public T value() Record Component getter of value.
| |