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.ModuleClassLoaderThe field for theclrecord component.private final ModuleLayerThe field for thelayerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLayerInfo(ModuleLayer layer, cpw.mods.cl.ModuleClassLoader cl) Creates an instance of aLayerInforecord class. -
Method Summary
Modifier and TypeMethodDescriptioncpw.mods.cl.ModuleClassLoadercl()Returns the value of theclrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layer()Returns the value of thelayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
layer
The field for thelayerrecord component. -
cl
private final cpw.mods.cl.ModuleClassLoader clThe field for theclrecord component.
-
-
Constructor Details
-
LayerInfo
LayerInfo(ModuleLayer layer, cpw.mods.cl.ModuleClassLoader cl) Creates an instance of aLayerInforecord class.- Parameters:
layer- the value for thelayerrecord componentcl- the value for theclrecord 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 thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
cl
public cpw.mods.cl.ModuleClassLoader cl()Returns the value of theclrecord component.- Returns:
- the value of the
clrecord component
-