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 ofTerminalMissing.Use the builder to create immutable instances:
ImmutableTerminalMissing.builder(). Use the static factory method to create immutable instances:ImmutableTerminalMissing.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTerminalMissing.BuilderBuilds instances of typeImmutableTerminalMissing.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableTerminalMissing.Builderbuilder()Creates a builder forImmutableTerminalMissing.static ImmutableTerminalMissingcopyOf(TerminalMissing instance)Creates an immutable copy of aTerminalMissingvalue.booleanequals(Object another)This 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.List<DotBracketSymbol>symbols()StringtoString()Prints the immutable valueTerminalMissingwith attribute values.ImmutableTerminalMissingwithSymbols(Iterable<? extends DotBracketSymbol> elements)Copy the current immutable object with elements that replace the content ofsymbols.ImmutableTerminalMissingwithSymbols(DotBracketSymbol... elements)Copy the current immutable object with elements that replace the content ofsymbols.
-
-
-
Method Detail
-
symbols
public List<DotBracketSymbol> symbols()
- Specified by:
symbolsin classTerminalMissing- Returns:
- The list of missing symbols.
-
withSymbols
public final ImmutableTerminalMissing withSymbols(DotBracketSymbol... elements)
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
public final ImmutableTerminalMissing withSymbols(Iterable<? extends DotBracketSymbol> elements)
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
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableTerminalMissingthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:symbols.
-
toString
public String toString()
Prints the immutable valueTerminalMissingwith attribute values.
-
of
public static ImmutableTerminalMissing of(List<DotBracketSymbol> symbols)
Construct a new immutableTerminalMissinginstance.- Parameters:
symbols- The value for thesymbolsattribute- Returns:
- An immutable TerminalMissing instance
-
of
public static ImmutableTerminalMissing of(Iterable<? extends DotBracketSymbol> symbols)
Construct a new immutableTerminalMissinginstance.- Parameters:
symbols- The value for thesymbolsattribute- Returns:
- An immutable TerminalMissing instance
-
copyOf
public static ImmutableTerminalMissing copyOf(TerminalMissing instance)
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
public static ImmutableTerminalMissing.Builder builder()
Creates a builder forImmutableTerminalMissing.ImmutableTerminalMissing.builder() .addSymbols|addAllSymbols(pl.poznan.put.structure.DotBracketSymbol) //symbolselements .build();- Returns:
- A new ImmutableTerminalMissing builder
-
-