Record Class ContentPackMetadata
java.lang.Object
java.lang.Record
ke.ric.content.ContentPackMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionContentPackMetadata(String id, String name, String version, int overrideStrength) Creates an instance of aContentPackMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static Optional<ContentPackMetadata> fromRoot(com.google.gson.JsonObject root) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.intReturns the value of theoverrideStrengthrecord component.sourceId()final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ContentPackMetadata
Creates an instance of aContentPackMetadatarecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentoverrideStrength- the value for theoverrideStrengthrecord component
-
-
Method Details
-
fromRoot
-
sourceId
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
overrideStrength
public int overrideStrength()Returns the value of theoverrideStrengthrecord component.- Returns:
- the value of the
overrideStrengthrecord component
-