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 classBuilds instances of typeImmutableTerminalMissing. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableTerminalMissing.static ImmutableTerminalMissingcopyOf(TerminalMissing instance) Creates an immutable copy of aTerminalMissingvalue.booleanThis instance is equal to all instances ofImmutableTerminalMissingthat have equal attribute values.inthashCode()Computes a hash code from attributes:symbols.static ImmutableTerminalMissingof(Iterable<? extends DotBracketSymbol> symbols) Construct a new immutableTerminalMissinginstance.static ImmutableTerminalMissingof(List<DotBracketSymbol> symbols) Construct a new immutableTerminalMissinginstance.symbols()toString()Prints the immutable valueTerminalMissingwith attribute values.final ImmutableTerminalMissingwithSymbols(Iterable<? extends DotBracketSymbol> elements) Copy the current immutable object with elements that replace the content ofsymbols.final ImmutableTerminalMissingwithSymbols(DotBracketSymbol... elements) Copy the current immutable object with elements that replace the content ofsymbols.
-
Method Details
-
symbols
- Specified by:
symbolsin 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
thisobject
-
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
thisobject
-
equals
This instance is equal to all instances ofImmutableTerminalMissingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:symbols. -
toString
Prints the immutable valueTerminalMissingwith attribute values. -
of
Construct a new immutableTerminalMissinginstance.- Parameters:
symbols- The value for thesymbolsattribute- Returns:
- An immutable TerminalMissing instance
-
of
Construct a new immutableTerminalMissinginstance.- Parameters:
symbols- The value for thesymbolsattribute- Returns:
- An immutable TerminalMissing instance
-
copyOf
Creates an immutable copy of aTerminalMissingvalue. 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) //symbolselements .build();- Returns:
- A new ImmutableTerminalMissing builder
-