Record Class AppImageLayout.Stub
java.lang.Object
java.lang.Record
jdk.jpackage.internal.model.AppImageLayout.Stub
- All Implemented Interfaces:
AppImageLayout
- Enclosing interface:
AppImageLayout
public static record AppImageLayout.Stub(Path rootDirectory, Path runtimeDirectory)
extends Record
implements AppImageLayout
Default implementation of
AppImageLayout interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.jpackage.internal.model.AppImageLayout
AppImageLayout.Stub -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.map(UnaryOperator<Path> mapper) Returns a copy of this app image layout with the specified mapper applied to every path.Returns a copy of this app image layout with the root directory set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.Returns the value of therootDirectoryrecord component.Returns the value of theruntimeDirectoryrecord component.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 jdk.jpackage.internal.model.AppImageLayout
isResolved, resolveAt, unresolve
-
Constructor Details
-
Stub
-
Stub
-
-
Method Details
-
resetRootDirectory
Description copied from interface:AppImageLayoutReturns a copy of this app image layout with the root directory set to an empty path (Path.of("")) or this instance if its root directory is already an empty path.- Specified by:
resetRootDirectoryin interfaceAppImageLayout- Returns:
- an app image layout with the root directory set to an empty path
-
map
Description copied from interface:AppImageLayoutReturns a copy of this app image layout with the specified mapper applied to every path.- Specified by:
mapin interfaceAppImageLayout- Parameters:
mapper- the mapper to use with every path in this app image layout.- Returns:
- the copy of this app image layout with the specified mapper applied to every path
-
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). -
rootDirectory
Returns the value of therootDirectoryrecord component.- Specified by:
rootDirectoryin interfaceAppImageLayout- Returns:
- the value of the
rootDirectoryrecord component
-
runtimeDirectory
Returns the value of theruntimeDirectoryrecord component.- Specified by:
runtimeDirectoryin interfaceAppImageLayout- Returns:
- the value of the
runtimeDirectoryrecord component
-