Package io.papermc.asm.versioned
Record Class VersionedRuleFactory.Chain
java.lang.Object
java.lang.Record
io.papermc.asm.versioned.VersionedRuleFactory.Chain
- All Implemented Interfaces:
VersionedRuleFactory
- Enclosing interface:
- VersionedRuleFactory
public static record VersionedRuleFactory.Chain(List<VersionedRuleFactory> factories)
extends Record
implements VersionedRuleFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.asm.versioned.VersionedRuleFactory
VersionedRuleFactory.Chain -
Field Summary
Fields inherited from interface io.papermc.asm.versioned.VersionedRuleFactory
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionChain(List<VersionedRuleFactory> factories) Creates an instance of aChainrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateRule(ApiVersion<?> apiVersion) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefactoriesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Chain
Creates an instance of aChainrecord class.- Parameters:
factories- the value for thefactoriesrecord component
-
-
Method Details
-
createRule
- Specified by:
createRulein interfaceVersionedRuleFactory
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
factories
Returns the value of thefactoriesrecord component.- Returns:
- the value of the
factoriesrecord component
-