Record Class VirtualCommandVariant
java.lang.Object
java.lang.Record
net.apartium.cocoabeans.commands.virtual.VirtualCommandVariant
- Record Components:
info- command infovariant- variant matcherignoreCase- ignore case for matchermetadata- variant metadata
@Experimental
@AvailableSince("0.0.39")
public record VirtualCommandVariant(CommandInfo info, String variant, boolean ignoreCase, Map<String,Object> metadata)
extends Record
Represents a variant in a virtual command
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVirtualCommandVariant(CommandInfo info, String variant, boolean ignoreCase, Map<String, Object> metadata) Creates a variant in a virtual command -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignoreCaserecord component.info()Returns the value of theinforecord component.metadata()Returns the value of themetadatarecord component.final StringtoString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Constructor Details
-
VirtualCommandVariant
public VirtualCommandVariant(CommandInfo info, String variant, boolean ignoreCase, Map<String, Object> metadata) Creates a variant in a virtual command- Parameters:
info- command infovariant- variant matcherignoreCase- ignore case for matchermetadata- variant metadata
-
-
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 '=='. -
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-
ignoreCase
public boolean ignoreCase()Returns the value of theignoreCaserecord component.- Returns:
- the value of the
ignoreCaserecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-