Record Class Config
java.lang.Object
java.lang.Record
org.dellroad.javabox.Config
- Record Components:
jshellBuilder- TheJShell.Builderassociated with this instancedelegateLoader- The delegateClassLoaderassociated with this instancecontrols- The list ofControls associated with this instance
public record Config(JShell.Builder jshellBuilder, ClassLoader delegateLoader, List<Control> controls)
extends Record
Configuration object for
JavaBox instances.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConfig(JShell.Builder jshellBuilder, ClassLoader delegateLoader, List<Control> controls) Creates an instance of aConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Builderbuilder()Create a newConfig.Builder.controls()Returns the value of thecontrolsrecord component.Returns the value of thedelegateLoaderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejshellBuilderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Config
Creates an instance of aConfigrecord class.- Parameters:
jshellBuilder- the value for thejshellBuilderrecord componentdelegateLoader- the value for thedelegateLoaderrecord componentcontrols- the value for thecontrolsrecord component
-
-
Method Details
-
builder
Create a newConfig.Builder. -
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). -
jshellBuilder
Returns the value of thejshellBuilderrecord component.- Returns:
- the value of the
jshellBuilderrecord component
-
delegateLoader
Returns the value of thedelegateLoaderrecord component.- Returns:
- the value of the
delegateLoaderrecord component
-
controls
-