Record Class CJ1FileColumnOrdering
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1FileColumnOrdering
- All Implemented Interfaces:
CJ1ValueType
public record CJ1FileColumnOrdering(CJ1FileColumn column, boolean ascending)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1FileColumnOrdering(CJ1FileColumn column, boolean ascending) Creates an instance of aCJ1FileColumnOrderingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theascendingrecord component.column()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1FileColumnOrdering
public CJ1FileColumnOrdering(@JsonPropertyDescription("The column used to order results.") CJ1FileColumn column, boolean ascending) Creates an instance of aCJ1FileColumnOrderingrecord class.- Parameters:
column- the value for thecolumnrecord componentascending- the value for theascendingrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
column
Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
ascending
public boolean ascending()Returns the value of theascendingrecord component.- Returns:
- the value of the
ascendingrecord component
-