APIdia Launch Partner
Top Description Constructors Methods
com.sun.javafx.css.media.expression

public final Class EqualExpression

extends RangeExpression
Class Inheritance
Imports
com.sun.javafx.css.media.MediaQueryCache, .SizeQueryType, .MediaQueryContext, javafx.css.Size

Evaluates whether a media feature is equal to a specified value.

Constructor Summary

AccessConstructor and Description
private
EqualExpression(SizeQueryType featureType, Size sizeValue)

private
EqualExpression(SizeQueryType featureType, double numberValue)

Method Summary

Modifier and TypeMethod and Description
public boolean
evaluate(MediaQueryContext context)

Implements com.sun.javafx.css.media.MediaQuery.evaluate.

Evaluates this media query against the provided context.

public static EqualExpression
ofNumber(SizeQueryType featureType, double numberValue)

public static EqualExpression
ofSize(SizeQueryType featureType, Size sizeValue)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.javafx.css.media.expression.RangeExpression:
equalsevaluategetContextAwarenessgetFeatureNamegetFeatureTypegetFeatureValuegetFormattedValuegetUnitgetValuehashCode

Constructor Detail

EqualExpressionback to summary
private EqualExpression(SizeQueryType featureType, Size sizeValue)
EqualExpressionback to summary
private EqualExpression(SizeQueryType featureType, double numberValue)

Method Detail

evaluateback to summary
public boolean evaluate(MediaQueryContext context)

Implements com.sun.javafx.css.media.MediaQuery.evaluate.

Doc from com.sun.javafx.css.media.MediaQuery.evaluate.

Evaluates this media query against the provided context.

Annotations
@Override
ofNumberback to summary
public static EqualExpression ofNumber(SizeQueryType featureType, double numberValue)
ofSizeback to summary
public static EqualExpression ofSize(SizeQueryType featureType, Size sizeValue)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override