Record Class LGlobalCaption
java.lang.Object
java.lang.Record
com.io7m.laurel.model.LGlobalCaption
- Record Components:
caption- The captionorder- The order
- All Implemented Interfaces:
Comparable<LGlobalCaption>
public record LGlobalCaption(LCaption caption, long order)
extends Record
implements Comparable<LGlobalCaption>
A global caption.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.intcompareTo(LGlobalCaption other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longorder()Returns the value of theorderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LGlobalCaption
A global caption.- Parameters:
caption- The captionorder- The order
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<LGlobalCaption>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
caption
-
order
-