Class MEAdoptiumConfiguration
java.lang.Object
com.io7m.montarre.adoptium.MEAdoptiumConfiguration
- All Implemented Interfaces:
MEAdoptiumConfigurationType
The Adoptium configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeMEAdoptiumConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionbaseURI()builder()Creates a builder forMEAdoptiumConfiguration.static MEAdoptiumConfigurationcopyOf(MEAdoptiumConfigurationType instance) Creates an immutable copy of aMEAdoptiumConfigurationTypevalue.booleanThis instance is equal to all instances ofMEAdoptiumConfigurationthat have equal attribute values.inthashCode()Computes a hash code from attributes:baseURI.toString()Prints the immutable valueMEAdoptiumConfigurationwith attribute values.final MEAdoptiumConfigurationwithBaseURI(URI value) Copy the current immutable object by setting a value for thebaseURIattribute.
-
Method Details
-
baseURI
- Specified by:
baseURIin interfaceMEAdoptiumConfigurationType- Returns:
- The base URI
-
withBaseURI
Copy the current immutable object by setting a value for thebaseURIattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for baseURI- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
copyOf
Creates an immutable copy of aMEAdoptiumConfigurationTypevalue. 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 MEAdoptiumConfiguration instance
-
builder
Creates a builder forMEAdoptiumConfiguration.MEAdoptiumConfiguration.builder() .setBaseURI(java.net.URI) // optional
baseURI.build();- Returns:
- A new MEAdoptiumConfiguration builder
-