Record Class CssValues.CssList
java.lang.Object
java.lang.Record
org.eclipse.e4.ui.css.core.impl.dom.CssValues.CssList
- All Implemented Interfaces:
CssValues.CssValue, CSSValue, CSSValueList
- Enclosing class:
CssValues
public static record CssValues.CssList(List<CssValues.CssValue> values)
extends Record
implements CssValues.CssValue, CSSValueList
A whitespace or comma separated sequence of values, e.g.
1px 2px 3px.-
Field Summary
Fields inherited from interface CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST -
Constructor Summary
ConstructorsConstructorDescriptionCssList(List<CssValues.CssValue> values) Creates an instance of aCssListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.shortintfinal inthashCode()Returns a hash code value for this object.item(int index) voidsetCssText(String cssText) final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
CssList
Creates an instance of aCssListrecord class.- Parameters:
values- the value for thevaluesrecord component
-
-
Method Details
-
getCssValueType
public short getCssValueType()- Specified by:
getCssValueTypein interfaceCSSValue
-
getLength
public int getLength()- Specified by:
getLengthin interfaceCSSValueList
-
item
- Specified by:
itemin interfaceCSSValueList
-
getCssText
- Specified by:
getCssTextin interfaceCSSValue
-
setCssText
- Specified by:
setCssTextin interfaceCSSValue- Throws:
DOMException
-
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). -
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-