Record Class CssValues.CssOperator
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.dom.CssValues.CssOperator
- All Implemented Interfaces:
CssValues.CssPrimitive, CssValues.CssValue, CSSPrimitiveValue, CSSValue
- Enclosing class:
CssValues
public static record CssValues.CssOperator(String text)
extends Record
implements CssValues.CssPrimitive
A separator (currently only
,) carried inside a value list, kept
for parity with the historical behaviour where the comma was a list item.-
Field Summary
Fields inherited from interface CSSPrimitiveValue
CSS_ATTR, CSS_CM, CSS_COUNTER, CSS_DEG, CSS_DIMENSION, CSS_EMS, CSS_EXS, CSS_GRAD, CSS_HZ, CSS_IDENT, CSS_IN, CSS_KHZ, CSS_MM, CSS_MS, CSS_NUMBER, CSS_PC, CSS_PERCENTAGE, CSS_PT, CSS_PX, CSS_RAD, CSS_RECT, CSS_RGBCOLOR, CSS_S, CSS_STRING, CSS_UNKNOWN, CSS_URIFields inherited from interface CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.shortfinal inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface CssValues.CssPrimitive
getCounterValue, getCssValueType, getFloatValue, getRectValue, getRGBColorValue, getStringValue, setCssText, setFloatValue, setStringValue
-
Constructor Details
-
CssOperator
Creates an instance of aCssOperatorrecord class.- Parameters:
text- the value for thetextrecord component
-
-
Method Details
-
getPrimitiveType
public short getPrimitiveType()- Specified by:
getPrimitiveTypein interfaceCSSPrimitiveValue
-
getCssText
- Specified by:
getCssTextin interfaceCSSValue
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-