Record Class BlueprintImage
java.lang.Object
java.lang.Record
kr.toxicity.model.api.data.blueprint.BlueprintImage
- Record Components:
name- image nameimage- imagemcmeta- mcmeta
public record BlueprintImage(@NotNull String name, byte[] image, @Nullable com.google.gson.JsonObject mcmeta)
extends Record
Blueprint image.
-
Constructor Summary
ConstructorsConstructorDescriptionBlueprintImage(@NotNull String name, byte[] image, @Nullable com.google.gson.JsonObject mcmeta) Creates an instance of aBlueprintImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longGets estimated sizefinal inthashCode()Returns a hash code value for this object.byte[]image()Returns the value of theimagerecord component.@Nullable com.google.gson.JsonObjectmcmeta()Returns the value of themcmetarecord component.@NotNull Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlueprintImage
public BlueprintImage(@NotNull @NotNull String name, byte[] image, @Nullable @Nullable com.google.gson.JsonObject mcmeta) Creates an instance of aBlueprintImagerecord class.
-
-
Method Details
-
estimatedSize
public long estimatedSize()Gets estimated size- Returns:
- estimated size
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
image
public byte[] image()Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
mcmeta
@Nullable public @Nullable com.google.gson.JsonObject mcmeta()Returns the value of themcmetarecord component.- Returns:
- the value of the
mcmetarecord component
-