Class OpenLocation
java.lang.Object
com.dna.jopt.member.unit.converter.openlocation.AbstractOpenLocation
com.dna.jopt.member.unit.converter.openlocation.OpenLocation
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class OpenLocation
extends AbstractOpenLocation
Immutable implementation of
AbstractOpenLocation
.
Use the builder to create immutable instances:
OpenLocation.builder()
.
Use the static factory method to create immutable instances:
OpenLocation.of()
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builds instances of typeOpenLocation
.static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLocation.CodeBuildStage
builder()
Creates a builder forOpenLocation
.code()
static OpenLocation
copyOf
(AbstractOpenLocation instance) Creates an immutable copy of aAbstractOpenLocation
value.boolean
This instance is equal to all instances ofOpenLocation
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:code
.static OpenLocation
Construct a new immutableOpenLocation
instance.toString()
Prints the immutable valueOpenLocation
with attribute values.final OpenLocation
Copy the current immutable object by setting a value for thecode
attribute.Methods inherited from class com.dna.jopt.member.unit.converter.openlocation.AbstractOpenLocation
check, from, to, toPos
-
Method Details
-
code
- Specified by:
code
in classAbstractOpenLocation
- Returns:
- The value of the
code
attribute
-
withCode
Copy the current immutable object by setting a value for thecode
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for code- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofOpenLocation
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:code
. -
toString
Prints the immutable valueOpenLocation
with attribute values. -
of
Construct a new immutableOpenLocation
instance.- Parameters:
code
- The value for thecode
attribute- Returns:
- An immutable OpenLocation instance
-
copyOf
Creates an immutable copy of aAbstractOpenLocation
value. 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 OpenLocation instance
-
builder
Creates a builder forOpenLocation
.OpenLocation.builder() .code(String) // required
code
.build();- Returns:
- A new OpenLocation builder
-