Class MEARuntimeSearch
java.lang.Object
com.io7m.montarre.adoptium.MEARuntimeSearch
- All Implemented Interfaces:
MEARuntimeSearchType
Runtime search parameters.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MEARuntimeSearch.Builderbuilder()Creates a builder forMEARuntimeSearch.static MEARuntimeSearchcopyOf(MEARuntimeSearchType instance) Creates an immutable copy of aMEARuntimeSearchTypevalue.booleanThis instance is equal to all instances ofMEARuntimeSearchthat have equal attribute values.intinthashCode()Computes a hash code from attributes:featureVersion,architecture,operatingSystem,imageKind.toString()Prints the immutable valueMEARuntimeSearchwith attribute values.final MEARuntimeSearchCopy the current immutable object by setting a value for thearchitectureattribute.final MEARuntimeSearchwithFeatureVersion(int value) Copy the current immutable object by setting a value for thefeatureVersionattribute.final MEARuntimeSearchwithImageKind(MRuntimeImageKind value) Copy the current immutable object by setting a value for theimageKindattribute.final MEARuntimeSearchCopy the current immutable object by setting a value for theoperatingSystemattribute.
-
Method Details
-
featureVersion
public int featureVersion()- Specified by:
featureVersionin interfaceMEARuntimeSearchType- Returns:
- The Java feature version (such as "21")
-
architecture
- Specified by:
architecturein interfaceMEARuntimeSearchType- Returns:
- The architecture name
-
operatingSystem
- Specified by:
operatingSystemin interfaceMEARuntimeSearchType- Returns:
- The operating system name
-
imageKind
- Specified by:
imageKindin interfaceMEARuntimeSearchType- Returns:
- The image kind
-
withFeatureVersion
Copy the current immutable object by setting a value for thefeatureVersionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for featureVersion- Returns:
- A modified copy or the
thisobject
-
withArchitecture
Copy the current immutable object by setting a value for thearchitectureattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for architecture- Returns:
- A modified copy or the
thisobject
-
withOperatingSystem
Copy the current immutable object by setting a value for theoperatingSystemattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for operatingSystem- Returns:
- A modified copy or the
thisobject
-
withImageKind
Copy the current immutable object by setting a value for theimageKindattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for imageKind- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMEARuntimeSearchTypevalue. 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 MEARuntimeSearch instance
-
builder
Creates a builder forMEARuntimeSearch.MEARuntimeSearch.builder() .setFeatureVersion(int) // required
featureVersion.setArchitecture(com.io7m.montarre.api.MArchitectureName) // requiredarchitecture.setOperatingSystem(com.io7m.montarre.api.MOperatingSystemName) // requiredoperatingSystem.setImageKind(com.io7m.montarre.api.MRuntimeImageKind) // optionalimageKind.build();- Returns:
- A new MEARuntimeSearch builder
-