Package kr.toxicity.model.api.pack
Record Class PackMeta.OverlayEntry
java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackMeta.OverlayEntry
- Enclosing class:
PackMeta
public static record PackMeta.OverlayEntry(@NotNull PackMeta.VersionRange formats, @NotNull String directory)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayEntry(@NotNull PackMeta.VersionRange formats, @NotNull String directory) Creates an instance of aOverlayEntryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull PackMeta.VersionRangeformats()Returns the value of theformatsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OverlayEntry
public OverlayEntry(@NotNull @NotNull PackMeta.VersionRange formats, @NotNull @NotNull String directory) Creates an instance of aOverlayEntryrecord class.- Parameters:
formats- the value for theformatsrecord componentdirectory- the value for thedirectoryrecord component
-
-
Method Details
-
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). -
formats
Returns the value of theformatsrecord component.- Returns:
- the value of the
formatsrecord component
-
directory
Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-