Record Class SideOnlyHandler.Target
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.util.sas.SideOnlyHandler.Target
- All Implemented Interfaces:
Comparable<SideOnlyHandler.Target>
- Enclosing class:
SideOnlyHandler
public static record SideOnlyHandler.Target(SideOnlyHandler.TargetKind kind, String owner, String name, String descriptor)
extends Record
implements Comparable<SideOnlyHandler.Target>
-
Constructor Summary
ConstructorsConstructorDescriptionTarget(SideOnlyHandler.TargetKind kind, String owner, String name, String descriptor) Creates an instance of aTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(SideOnlyHandler.Target other) Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.format()final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.owner()Returns the value of theownerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Target
Creates an instance of aTargetrecord class.- Parameters:
kind- the value for thekindrecord componentowner- the value for theownerrecord componentname- the value for thenamerecord componentdescriptor- the value for thedescriptorrecord component
-
-
Method Details
-
format
-
compareTo
- Specified by:
compareToin interfaceComparable<SideOnlyHandler.Target>
-
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). -
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-