Record Class Media.Query
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.dom.Media.Query
- Enclosing class:
Media
public static record Media.Query(boolean negated, String type, List<Media.Feature> features)
extends Record
A single media query: an optional
not, a media type and the
features joined to it with and.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Media.Querynot all, what a malformed query evaluates to. -
Constructor Summary
ConstructorsConstructorDescriptionQuery(boolean negated, String type, List<Media.Feature> features) Creates an instance of aQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.booleanmatches(Media.Context context) booleannegated()Returns the value of thenegatedrecord component.text()toString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
NEVER
not all, what a malformed query evaluates to.
-
-
Constructor Details
-
Query
Creates an instance of aQueryrecord class.- Parameters:
negated- the value for thenegatedrecord componenttype- the value for thetyperecord componentfeatures- the value for thefeaturesrecord component
-
-
Method Details
-
matches
-
text
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
negated
public boolean negated()Returns the value of thenegatedrecord component.- Returns:
- the value of the
negatedrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-