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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeOpenLocation.static interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLocation.CodeBuildStagebuilder()Creates a builder forOpenLocation.code()static OpenLocationcopyOf(AbstractOpenLocation instance) Creates an immutable copy of aAbstractOpenLocationvalue.booleanThis instance is equal to all instances ofOpenLocationthat have equal attribute values.inthashCode()Computes a hash code from attributes:code.static OpenLocationConstruct a new immutableOpenLocationinstance.toString()Prints the immutable valueOpenLocationwith attribute values.final OpenLocationCopy the current immutable object by setting a value for thecodeattribute.Methods inherited from class com.dna.jopt.member.unit.converter.openlocation.AbstractOpenLocation
check, from, to, toPos
-
Method Details
-
code
- Specified by:
codein classAbstractOpenLocation- Returns:
- The value of the
codeattribute
-
withCode
Copy the current immutable object by setting a value for thecodeattribute. 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
thisobject
-
equals
This instance is equal to all instances ofOpenLocationthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:code. -
toString
Prints the immutable valueOpenLocationwith attribute values. -
of
Construct a new immutableOpenLocationinstance.- Parameters:
code- The value for thecodeattribute- Returns:
- An immutable OpenLocation instance
-
copyOf
Creates an immutable copy of aAbstractOpenLocationvalue. 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) // requiredcode.build();- Returns:
- A new OpenLocation builder
-