Class MJavaInfo
java.lang.Object
com.io7m.montarre.api.MJavaInfo
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MJavaInfo.Builderbuilder()Creates a builder forMJavaInfo.static MJavaInfocopyOf(MJavaInfoType instance) Creates an immutable copy of aMJavaInfoTypevalue.booleanThis instance is equal to all instances ofMJavaInfothat have equal attribute values.inthashCode()Computes a hash code from attributes:requiredJDKVersion,mainModule.The fully-qualified main module name used as the application entrypoint.longtoString()Prints the immutable valueMJavaInfowith attribute values.final MJavaInfowithMainModule(String value) Copy the current immutable object by setting a value for themainModuleattribute.final MJavaInfowithRequiredJDKVersion(long value) Copy the current immutable object by setting a value for therequiredJDKVersionattribute.
-
Method Details
-
requiredJDKVersion
public long requiredJDKVersion()- Specified by:
requiredJDKVersionin interfaceMJavaInfoType- Returns:
- The minimum required JDK version
-
mainModule
The fully-qualified main module name used as the application entrypoint. For example, "com.io7m.montarre.cmdline/com.io7m.montarre.cmdline.MMain".- Specified by:
mainModulein interfaceMJavaInfoType- Returns:
- The fully-qualified main module
-
withRequiredJDKVersion
Copy the current immutable object by setting a value for therequiredJDKVersionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for requiredJDKVersion- Returns:
- A modified copy of the
thisobject
-
withMainModule
Copy the current immutable object by setting a value for themainModuleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mainModule- Returns:
- A modified copy of the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMJavaInfoTypevalue. 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 MJavaInfo instance
-
builder
Creates a builder forMJavaInfo.MJavaInfo.builder() .setRequiredJDKVersion(long) // requiredrequiredJDKVersion.setMainModule(String) // requiredmainModule.build();- Returns:
- A new MJavaInfo builder
-