@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class OpenLocation extends AbstractOpenLocation
AbstractOpenLocation
.
Use the builder to create immutable instances:
OpenLocation.builder()
.
Use the static factory method to create immutable instances:
OpenLocation.of()
.
Modifier and Type | Class and Description |
---|---|
static class |
OpenLocation.Builder
Builds instances of type
OpenLocation . |
static interface |
OpenLocation.BuildFinal |
static interface |
OpenLocation.CodeBuildStage |
Modifier and Type | Method and Description |
---|---|
static OpenLocation.CodeBuildStage |
builder()
Creates a builder for
OpenLocation . |
String |
code() |
static OpenLocation |
copyOf(AbstractOpenLocation instance)
Creates an immutable copy of a
AbstractOpenLocation value. |
boolean |
equals(Object another)
This instance is equal to all instances of
OpenLocation that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
code . |
static OpenLocation |
of(String code)
Construct a new immutable
OpenLocation instance. |
String |
toString()
Prints the immutable value
OpenLocation with attribute values. |
OpenLocation |
withCode(String value)
Copy the current immutable object by setting a value for the
code attribute. |
check, from, to, toPos
public String code()
code
in class AbstractOpenLocation
code
attributepublic final OpenLocation withCode(String value)
code
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for codethis
objectpublic boolean equals(@Nullable Object another)
OpenLocation
that have equal attribute values.public int hashCode()
code
.public String toString()
OpenLocation
with attribute values.public static OpenLocation of(String code)
OpenLocation
instance.code
- The value for the code
attributepublic static OpenLocation copyOf(AbstractOpenLocation instance)
AbstractOpenLocation
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 OpenLocation.CodeBuildStage builder()
OpenLocation
.
OpenLocation.builder()
.code(String) // required code
.build();
Copyright © 2017–2023 DNA Evolutions GmbH. All rights reserved.