Record Class PlaceholderTagResolver
java.lang.Object
java.lang.Record
io.github.miniplaceholders.api.placeholder.PlaceholderTagResolver
- Record Components:
placeholders- the placeholders to process
- All Implemented Interfaces:
TagResolver
public record PlaceholderTagResolver(Placeholder[] placeholders)
extends Record
implements TagResolver
A TagResolver responsible for containing and processing multiple placeholders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TagResolver
TagResolver.Builder, TagResolver.Single, TagResolver.WithoutArguments -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlaceholderTagResolver(Placeholder... placeholders) Creates an instance of aPlaceholderTagResolverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of theplaceholdersrecord component.@Nullable Tagresolve(String name, ArgumentQueue arguments, Context ctx) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PlaceholderTagResolver
Creates an instance of aPlaceholderTagResolverrecord class.- Parameters:
placeholders- the value for theplaceholdersrecord component
-
-
Method Details
-
resolve
@Nullable public @Nullable Tag resolve(String name, ArgumentQueue arguments, Context ctx) throws ParsingException - Specified by:
resolvein interfaceTagResolver- Throws:
ParsingException
-
has
- Specified by:
hasin interfaceTagResolver
-
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). -
placeholders
Returns the value of theplaceholdersrecord component.- Returns:
- the value of the
placeholdersrecord component
-