Class MNativeWorkspaceConfiguration
java.lang.Object
com.io7m.montarre.api.natives.MNativeWorkspaceConfiguration
- All Implemented Interfaces:
MNativeWorkspaceConfigurationType
public final class MNativeWorkspaceConfiguration
extends Object
implements MNativeWorkspaceConfigurationType
A workspace configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMNativeWorkspaceConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forMNativeWorkspaceConfiguration.copyOf(MNativeWorkspaceConfigurationType instance) Creates an immutable copy of aMNativeWorkspaceConfigurationTypevalue.booleanThis instance is equal to all instances ofMNativeWorkspaceConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:baseDirectory,javaRuntimeDownloadFormat,javaRuntimeDownloadURI,javaRuntimeDownloadSHA256.toString()Prints the immutable valueMNativeWorkspaceConfigurationwith attribute values.withBaseDirectory(Path value) Copy the current immutable object by setting a value for thebaseDirectoryattribute.Copy the current immutable object by setting a value for thejavaRuntimeDownloadFormatattribute.Copy the current immutable object by setting a value for thejavaRuntimeDownloadSHA256attribute.withJavaRuntimeDownloadURI(URI value) Copy the current immutable object by setting a value for thejavaRuntimeDownloadURIattribute.
-
Method Details
-
baseDirectory
- Specified by:
baseDirectoryin interfaceMNativeWorkspaceConfigurationType- Returns:
- The base workspace directory
-
javaRuntimeDownloadFormat
- Specified by:
javaRuntimeDownloadFormatin interfaceMNativeWorkspaceConfigurationType- Returns:
- The Java runtime archive format
-
javaRuntimeDownloadURI
- Specified by:
javaRuntimeDownloadURIin interfaceMNativeWorkspaceConfigurationType- Returns:
- The Java runtime archive URI
-
javaRuntimeDownloadSHA256
- Specified by:
javaRuntimeDownloadSHA256in interfaceMNativeWorkspaceConfigurationType- Returns:
- The Java runtime archive checksum
-
withBaseDirectory
Copy the current immutable object by setting a value for thebaseDirectoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseDirectory- Returns:
- A modified copy of the
thisobject
-
withJavaRuntimeDownloadFormat
Copy the current immutable object by setting a value for thejavaRuntimeDownloadFormatattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for javaRuntimeDownloadFormat- Returns:
- A modified copy of the
thisobject
-
withJavaRuntimeDownloadURI
Copy the current immutable object by setting a value for thejavaRuntimeDownloadURIattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for javaRuntimeDownloadURI- Returns:
- A modified copy of the
thisobject
-
withJavaRuntimeDownloadSHA256
Copy the current immutable object by setting a value for thejavaRuntimeDownloadSHA256attribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for javaRuntimeDownloadSHA256- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMNativeWorkspaceConfigurationTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable MNativeWorkspaceConfiguration instance
-
builder
Creates a builder forMNativeWorkspaceConfiguration.MNativeWorkspaceConfiguration.builder() .setBaseDirectory(java.nio.file.Path) // requiredbaseDirectory.setJavaRuntimeDownloadFormat(com.io7m.montarre.api.MArchiveFormat) // requiredjavaRuntimeDownloadFormat.setJavaRuntimeDownloadURI(java.net.URI) // requiredjavaRuntimeDownloadURI.setJavaRuntimeDownloadSHA256(String) // requiredjavaRuntimeDownloadSHA256.build();- Returns:
- A new MNativeWorkspaceConfiguration builder
-