Package pl.poznan.put.structure.formats
Class ImmutableTerminalMissing
java.lang.Object
pl.poznan.put.structure.formats.TerminalMissing
pl.poznan.put.structure.formats.ImmutableTerminalMissing
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutableTerminalMissing
extends TerminalMissing
Immutable implementation of
TerminalMissing
.
Use the builder to create immutable instances:
ImmutableTerminalMissing.builder()
.
Use the static factory method to create immutable instances:
ImmutableTerminalMissing.of()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableTerminalMissing
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutableTerminalMissing
.static ImmutableTerminalMissing
copyOf
(TerminalMissing instance) Creates an immutable copy of aTerminalMissing
value.boolean
This instance is equal to all instances ofImmutableTerminalMissing
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:symbols
.static ImmutableTerminalMissing
of
(Iterable<? extends DotBracketSymbol> symbols) Construct a new immutableTerminalMissing
instance.static ImmutableTerminalMissing
of
(List<DotBracketSymbol> symbols) Construct a new immutableTerminalMissing
instance.symbols()
toString()
Prints the immutable valueTerminalMissing
with attribute values.final ImmutableTerminalMissing
withSymbols
(Iterable<? extends DotBracketSymbol> elements) Copy the current immutable object with elements that replace the content ofsymbols
.final ImmutableTerminalMissing
withSymbols
(DotBracketSymbol... elements) Copy the current immutable object with elements that replace the content ofsymbols
.
-
Method Details
-
symbols
- Specified by:
symbols
in classTerminalMissing
- Returns:
- The list of missing symbols.
-
withSymbols
Copy the current immutable object with elements that replace the content ofsymbols
.- Parameters:
elements
- The elements to set- Returns:
- A modified copy of
this
object
-
withSymbols
Copy the current immutable object with elements that replace the content ofsymbols
. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
elements
- An iterable of symbols elements to set- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofImmutableTerminalMissing
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:symbols
. -
toString
Prints the immutable valueTerminalMissing
with attribute values. -
of
Construct a new immutableTerminalMissing
instance.- Parameters:
symbols
- The value for thesymbols
attribute- Returns:
- An immutable TerminalMissing instance
-
of
Construct a new immutableTerminalMissing
instance.- Parameters:
symbols
- The value for thesymbols
attribute- Returns:
- An immutable TerminalMissing instance
-
copyOf
Creates an immutable copy of aTerminalMissing
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 TerminalMissing instance
-
builder
Creates a builder forImmutableTerminalMissing
.ImmutableTerminalMissing.builder() .addSymbols|addAllSymbols(pl.poznan.put.structure.DotBracketSymbol) //
symbols
elements .build();- Returns:
- A new ImmutableTerminalMissing builder
-