Package dev.yumi.mc.core.api.metadata
Record Class ManifestCustomValue.BooleanValue
java.lang.Object
java.lang.Record
dev.yumi.mc.core.api.metadata.ManifestCustomValue.BooleanValue
- All Implemented Interfaces:
ManifestCustomValue<Boolean>
- Enclosing interface:
ManifestCustomValue<T>
public static record ManifestCustomValue.BooleanValue(boolean bool)
extends Record
implements ManifestCustomValue<Boolean>
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.yumi.mc.core.api.metadata.ManifestCustomValue
ManifestCustomValue.ArrayValue, ManifestCustomValue.BooleanValue, ManifestCustomValue.NumberValue, ManifestCustomValue.ObjectValue, ManifestCustomValue.StringValue -
Constructor Summary
ConstructorsConstructorDescriptionBooleanValue(boolean bool) Creates an instance of aBooleanValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbool()Returns the value of theboolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.@NotNull Booleanvalue()
-
Constructor Details
-
BooleanValue
public BooleanValue(boolean bool) Creates an instance of aBooleanValuerecord class.- Parameters:
bool- the value for theboolrecord component
-
-
Method Details
-
value
- Specified by:
valuein interfaceManifestCustomValue<Boolean>
-
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 with '=='. -
bool
public boolean bool()Returns the value of theboolrecord component.- Returns:
- the value of the
boolrecord component
-