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, @NotNull PackMeta.PackVersion minFormat, @NotNull PackMeta.PackVersion maxFormat)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayEntry(@NotNull PackMeta.VersionRange formats, @NotNull String directory) OverlayEntry(@NotNull PackMeta.VersionRange formats, @NotNull String directory, @NotNull PackMeta.PackVersion minFormat, @NotNull PackMeta.PackVersion maxFormat) 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.@NotNull PackMeta.PackVersionReturns the value of themaxFormatrecord component.@NotNull PackMeta.PackVersionReturns the value of theminFormatrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OverlayEntry
public OverlayEntry(@NotNull @NotNull PackMeta.VersionRange formats, @NotNull @NotNull String directory) -
OverlayEntry
public OverlayEntry(@NotNull @NotNull PackMeta.VersionRange formats, @NotNull @NotNull String directory, @NotNull @NotNull PackMeta.PackVersion minFormat, @NotNull @NotNull PackMeta.PackVersion maxFormat) Creates an instance of aOverlayEntryrecord class.- Parameters:
formats- the value for theformatsrecord componentdirectory- the value for thedirectoryrecord componentminFormat- the value for theminFormatrecord componentmaxFormat- the value for themaxFormatrecord 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
-
minFormat
Returns the value of theminFormatrecord component.- Returns:
- the value of the
minFormatrecord component
-
maxFormat
Returns the value of themaxFormatrecord component.- Returns:
- the value of the
maxFormatrecord component
-