Record Class CAAttachment
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAAttachment
- Record Components:
file- The filerelation- The attachment relation
- All Implemented Interfaces:
Comparable<CAAttachment>
public record CAAttachment(CAFileType file, String relation)
extends Record
implements Comparable<CAAttachment>
An attachment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CAAttachment other) final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.key()relation()Returns the value of therelationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAAttachment
An attachment.- Parameters:
file- The filerelation- The attachment relation
-
-
Method Details
-
key
- Returns:
- The attachment key
-
compareTo
- Specified by:
compareToin interfaceComparable<CAAttachment>
-
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). -
file
-
relation
-