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.SecureJarbuild()final booleanIndicates whether some other object is "equal to" this one.(package private) static ModuleLayerHandler.PathOrJarfrom(cpw.mods.jarhandling.SecureJar jar) (package private) static ModuleLayerHandler.PathOrJarfinal inthashCode()Returns a hash code value for this object.cpw.mods.jarhandling.SecureJarjar()Returns the value of thejarrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
path
The field for thepathrecord component. -
jar
private final cpw.mods.jarhandling.SecureJar jarThe field for thejarrecord component.
-
-
Constructor Details
-
PathOrJar
Creates an instance of aPathOrJarrecord class.- Parameters:
path- the value for thepathrecord componentjar- the value for thejarrecord 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 thepathrecord component.- Returns:
- the value of the
pathrecord component
-
jar
public cpw.mods.jarhandling.SecureJar jar()Returns the value of thejarrecord component.- Returns:
- the value of the
jarrecord component
-