Package cpw.mods.modlauncher
Record Class ModuleLayerHandler.PathOrJar
java.lang.Object
java.lang.Record
cpw.mods.modlauncher.ModuleLayerHandler.PathOrJar
- Enclosing class:
ModuleLayerHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) cpw.mods.jarhandling.SecureJar
build()
final boolean
Indicates whether some other object is "equal to" this one.(package private) static ModuleLayerHandler.PathOrJar
from
(cpw.mods.jarhandling.SecureJar jar) (package private) static ModuleLayerHandler.PathOrJar
final int
hashCode()
Returns a hash code value for this object.cpw.mods.jarhandling.SecureJar
jar()
Returns the value of thejar
record component.path()
Returns the value of thepath
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
path
The field for thepath
record component. -
jar
private final cpw.mods.jarhandling.SecureJar jarThe field for thejar
record component.
-
-
Constructor Details
-
PathOrJar
Creates an instance of aPathOrJar
record class.- Parameters:
path
- the value for thepath
record componentjar
- the value for thejar
record component
-
-
Method Details
-
from
-
from
-
build
cpw.mods.jarhandling.SecureJar build() -
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)
. -
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
jar
public cpw.mods.jarhandling.SecureJar jar()Returns the value of thejar
record component.- Returns:
- the value of the
jar
record component
-