Package dev.yumi.mc.core.api.metadata
Record Class ManifestCustomValue.ArrayValue
java.lang.Object
java.lang.Record
dev.yumi.mc.core.api.metadata.ManifestCustomValue.ArrayValue
- All Implemented Interfaces:
ManifestCustomValue<List<ManifestCustomValue<?>>>,Iterable<ManifestCustomValue<?>>
- Enclosing interface:
ManifestCustomValue<T>
public static record ManifestCustomValue.ArrayValue(@Unmodifiable List<ManifestCustomValue<?>> value)
extends Record
implements ManifestCustomValue<List<ManifestCustomValue<?>>>, Iterable<ManifestCustomValue<?>>
-
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
ConstructorsConstructorDescriptionArrayValue(@Unmodifiable List<ManifestCustomValue<?>> value) Creates an instance of aArrayValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidforEach(Consumer<? super ManifestCustomValue<?>> action) final inthashCode()Returns a hash code value for this object.@NotNull Iterator<ManifestCustomValue<?>> iterator()@NotNull Spliterator<ManifestCustomValue<?>> final StringtoString()Returns a string representation of this record class.@Unmodifiable List<ManifestCustomValue<?>> value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ArrayValue
Creates an instance of aArrayValuerecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<ManifestCustomValue<?>>
-
forEach
- Specified by:
forEachin interfaceIterable<ManifestCustomValue<?>>
-
spliterator
- Specified by:
spliteratorin interfaceIterable<ManifestCustomValue<?>>
-
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). -
value
Returns the value of thevaluerecord component.- Specified by:
valuein interfaceManifestCustomValue<List<ManifestCustomValue<?>>>- Returns:
- the value of the
valuerecord component
-