Package kr.toxicity.model.api.pack
Record Class PackMeta
java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackMeta
public record PackMeta(@NotNull PackMeta.Pack pack, @Nullable PackMeta.Overlay overlays)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final recordstatic final recordstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPackMeta(@NotNull PackMeta.Pack pack, @Nullable PackMeta.Overlay overlays) Creates an instance of aPackMetarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PackMeta.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable PackMeta.Overlayoverlays()Returns the value of theoverlaysrecord component.@NotNull PackMeta.Packpack()Returns the value of thepackrecord component.@NotNull com.google.gson.JsonElementtoJson()@NotNull PackResourcefinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
PATH
-
-
Constructor Details
-
PackMeta
public PackMeta(@NotNull @NotNull PackMeta.Pack pack, @Nullable @Nullable PackMeta.Overlay overlays) Creates an instance of aPackMetarecord class.- Parameters:
pack- the value for thepackrecord componentoverlays- the value for theoverlaysrecord component
-
-
Method Details
-
builder
-
toJson
@NotNull public @NotNull com.google.gson.JsonElement toJson() -
toResource
-
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). -
pack
Returns the value of thepackrecord component.- Returns:
- the value of the
packrecord component
-
overlays
Returns the value of theoverlaysrecord component.- Returns:
- the value of the
overlaysrecord component
-