Package io.keikai.axyra.sheets.content
Record Class ConditionalFormat.ValueObject
java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.ConditionalFormat.ValueObject
- Record Components:
type-"min"/"max"/"num"/"percent"/"percentile"/"formula"value- the threshold number or formula (nullfor min/max)gte- greater-than-or-equal comparison (spec defaulttrue)
- Enclosing class:
- ConditionalFormat
public static record ConditionalFormat.ValueObject(String type, String value, boolean gte)
extends Record
A threshold value object of a color-scale / data-bar / icon-set rule
(ECMA-376 §18.3.1.11 cfvo).
-
Constructor Summary
ConstructorsConstructorDescriptionValueObject(String type, String value, boolean gte) Creates an instance of aValueObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleangte()Returns the value of thegterecord component.final inthashCode()Returns a hash code value for this object.A valueless threshold ("min"/"max").A threshold with a number or formula value.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Method Details
-
of
A valueless threshold ("min"/"max"). -
of
A threshold with a number or formula value. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
gte
public boolean gte()Returns the value of thegterecord component.- Returns:
- the value of the
gterecord component
-