Package org.moddingx.libx.registration
Record Class RegistrationBuilder.Result
java.lang.Object
java.lang.Record
org.moddingx.libx.registration.RegistrationBuilder.Result
- Enclosing class:
- RegistrationBuilder
public static record RegistrationBuilder.Result(boolean tracking, List<RegistryCondition> conditions, List<RegistryTransformer> transformers)
extends Record
-
Constructor Summary
ConstructorDescriptionResult
(boolean tracking, List<RegistryCondition> conditions, List<RegistryTransformer> transformers) Creates an instance of aResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconditions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.boolean
tracking()
Returns the value of thetracking
record component.Returns the value of thetransformers
record component.
-
Constructor Details
-
Result
public Result(boolean tracking, List<RegistryCondition> conditions, List<RegistryTransformer> transformers) Creates an instance of aResult
record class.- Parameters:
tracking
- the value for thetracking
record componentconditions
- the value for theconditions
record componenttransformers
- the value for thetransformers
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
tracking
public boolean tracking()Returns the value of thetracking
record component.- Returns:
- the value of the
tracking
record component
-
conditions
Returns the value of theconditions
record component.- Returns:
- the value of the
conditions
record component
-
transformers
Returns the value of thetransformers
record component.- Returns:
- the value of the
transformers
record component
-