Record Class HeightBlock
java.lang.Object
java.lang.Record
io.meeds.layout.model.HeightBlock
-
Constructor Summary
ConstructorsConstructorDescriptionHeightBlock(Boolean enabled, HeightPreset fixed, Integer customPx) Creates an instance of aHeightBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncustomPx()Returns the value of thecustomPxrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.fixed()Returns the value of thefixedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HeightBlock
Creates an instance of aHeightBlockrecord class.- Parameters:
enabled- the value for theenabledrecord componentfixed- the value for thefixedrecord componentcustomPx- the value for thecustomPxrecord component
-
-
Method Details
-
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). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-
customPx
Returns the value of thecustomPxrecord component.- Returns:
- the value of the
customPxrecord component
-