Record Class PackMeta.OverlayEntry
java.lang.Object
java.lang.Record
kr.toxicity.model.api.pack.PackMeta.OverlayEntry
- Record Components:
formats- the range of formats this overlay applies to (removed in 1.21.9)directory- the directory name for the overlayminFormat- the minimum format (>= 1.21.9)maxFormat- the maximum format
- 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
Represents a single entry in the overlays list.
- Since:
- 1.15.2
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayEntry(@NotNull PackMeta.VersionRange formats, @NotNull String directory) Creates an overlay entry with a format range and 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) Creates an overlay entry with a format range and directory.- Parameters:
formats- the format rangedirectory- the directory- Since:
- 1.15.2
-
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.
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
formats
-
directory
-
minFormat
-
maxFormat
-