Record Class Main.Provider
java.lang.Object
java.lang.Record
jdk.jpackage.internal.cli.Main.Provider
- All Implemented Interfaces:
ToolProvider
- Enclosing class:
Main
public static record Main.Provider(Supplier<CliBundlingEnvironment> bundlingEnvSupplier)
extends Record
implements ToolProvider
-
Constructor Summary
ConstructorsConstructorDescriptionProvider()Provider(Supplier<CliBundlingEnvironment> bundlingEnvSupplier) Creates an instance of aProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebundlingEnvSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()intrun(PrintStream out, PrintStream err, String... args) intrun(PrintWriter out, PrintWriter err, String... args) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.spi.ToolProvider
description
-
Constructor Details
-
Provider
Creates an instance of aProviderrecord class.- Parameters:
bundlingEnvSupplier- the value for thebundlingEnvSupplierrecord component
-
Provider
public Provider()
-
-
Method Details
-
name
- Specified by:
namein interfaceToolProvider
-
run
- Specified by:
runin interfaceToolProvider
-
run
- Specified by:
runin interfaceToolProvider
-
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). -
bundlingEnvSupplier
Returns the value of thebundlingEnvSupplierrecord component.- Returns:
- the value of the
bundlingEnvSupplierrecord component
-