Record Class Media.Context
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.dom.Media.Context
- Enclosing class:
Media
public static record Media.Context(String os, String ws, String osVersion, Media.BundleVersions bundles)
extends Record
The environment a query is evaluated against. The installed bundles can
change while the workbench runs, so a bundle query answers for the moment
the rules were indexed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbundles()Returns the value of thebundlesrecord component.static Media.Contextcurrent()The platform this workbench runs on.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.os()Returns the value of theosrecord component.Returns the value of theosVersionrecord component.final StringtoString()Returns a string representation of this record class.ws()Returns the value of thewsrecord component.
-
Constructor Details
-
Context
-
Context
-
Context
Creates an instance of aContextrecord class.- Parameters:
os- the value for theosrecord componentws- the value for thewsrecord componentosVersion- the value for theosVersionrecord componentbundles- the value for thebundlesrecord component
-
-
Method Details
-
current
The platform this workbench runs on. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
os
Returns the value of theosrecord component.- Returns:
- the value of the
osrecord component
-
ws
Returns the value of thewsrecord component.- Returns:
- the value of the
wsrecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
bundles
Returns the value of thebundlesrecord component.- Returns:
- the value of the
bundlesrecord component
-