MinSourcesConfigurationTypepublic final class MinSourcesConfiguration extends Object implements MinSourcesConfigurationType
| Modifier and Type | Class | Description |
|---|---|---|
static class |
MinSourcesConfiguration.Builder |
Builds instances of type
MinSourcesConfiguration. |
| Modifier and Type | Method | Description |
|---|---|---|
static MinSourcesConfiguration.Builder |
builder() |
Creates a builder for
MinSourcesConfiguration. |
static MinSourcesConfiguration |
copyOf(MinSourcesConfigurationType instance) |
Creates an immutable copy of a
MinSourcesConfigurationType value. |
boolean |
equals(Object another) |
This instance is equal to all instances of
MinSourcesConfiguration that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
system, uri. |
static MinSourcesConfiguration |
of(String system,
URI uri) |
Construct a new immutable
MinSourcesConfiguration instance. |
String |
system() |
|
String |
toString() |
Prints the immutable value
MinSourcesConfiguration with attribute values. |
URI |
uri() |
|
MinSourcesConfiguration |
withSystem(String value) |
Copy the current immutable object by setting a value for the
system attribute. |
MinSourcesConfiguration |
withUri(URI value) |
Copy the current immutable object by setting a value for the
uri attribute. |
public String system()
system in interface MinSourcesConfigurationTypepublic URI uri()
uri in interface MinSourcesConfigurationTypepublic final MinSourcesConfiguration withSystem(String value)
system attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for systemthis objectpublic final MinSourcesConfiguration withUri(URI value)
uri attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for urithis objectpublic boolean equals(Object another)
MinSourcesConfiguration that have equal attribute values.public int hashCode()
system, uri.public String toString()
MinSourcesConfiguration with attribute values.public static MinSourcesConfiguration of(String system, URI uri)
MinSourcesConfiguration instance.system - The value for the system attributeuri - The value for the uri attributepublic static MinSourcesConfiguration copyOf(MinSourcesConfigurationType instance)
MinSourcesConfigurationType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static MinSourcesConfiguration.Builder builder()
MinSourcesConfiguration.Copyright © 2018 <code@io7m.com> http://io7m.com