Package cpw.mods.modlauncher
Record Class ModuleLayerHandler.LayerInfo
java.lang.Object
java.lang.Record
cpw.mods.modlauncher.ModuleLayerHandler.LayerInfo
- Enclosing class:
ModuleLayerHandler
static record ModuleLayerHandler.LayerInfo(ModuleLayer layer, cpw.mods.cl.ModuleClassLoader cl)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final cpw.mods.cl.ModuleClassLoader
The field for thecl
record component.private final ModuleLayer
The field for thelayer
record component. -
Constructor Summary
ConstructorsConstructorDescriptionLayerInfo
(ModuleLayer layer, cpw.mods.cl.ModuleClassLoader cl) Creates an instance of aLayerInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncpw.mods.cl.ModuleClassLoader
cl()
Returns the value of thecl
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.layer()
Returns the value of thelayer
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
layer
The field for thelayer
record component. -
cl
private final cpw.mods.cl.ModuleClassLoader clThe field for thecl
record component.
-
-
Constructor Details
-
LayerInfo
LayerInfo(ModuleLayer layer, cpw.mods.cl.ModuleClassLoader cl) Creates an instance of aLayerInfo
record class.- Parameters:
layer
- the value for thelayer
record componentcl
- the value for thecl
record 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)
. -
layer
Returns the value of thelayer
record component.- Returns:
- the value of the
layer
record component
-
cl
public cpw.mods.cl.ModuleClassLoader cl()Returns the value of thecl
record component.- Returns:
- the value of the
cl
record component
-