@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","OptionsListIF"}) @Immutable public final class OptionsList extends Object implements OptionsListIF
OptionsListIF.
Use the builder to create immutable instances:
OptionsList.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
OptionsList.Builder
Builds instances of type
OptionsList. |
| Modifier and Type | Method and Description |
|---|---|
static OptionsList.Builder |
builder()
Creates a builder for
OptionsList. |
static OptionsList |
copyOf(OptionsListIF instance)
Creates an immutable copy of a
OptionsListIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
OptionsList that have equal attribute values. |
List<Option> |
getOptions() |
int |
hashCode()
Computes a hash code from attributes:
options. |
String |
toString()
Prints the immutable value
OptionsList with attribute values. |
OptionsList |
withOptions(Iterable<? extends Option> elements)
Copy the current immutable object with elements that replace the content of
options. |
OptionsList |
withOptions(Option... elements)
Copy the current immutable object with elements that replace the content of
options. |
public List<Option> getOptions()
getOptions in interface OptionsListIFoptions attributepublic final OptionsList withOptions(Option... elements)
options.elements - The elements to setthis objectpublic final OptionsList withOptions(Iterable<? extends Option> elements)
options.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of options elements to setthis objectpublic boolean equals(@Nullable Object another)
OptionsList that have equal attribute values.public int hashCode()
options.public String toString()
OptionsList with attribute values.public static OptionsList copyOf(OptionsListIF instance)
OptionsListIF 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 OptionsList.Builder builder()
OptionsList.Copyright © 2019. All rights reserved.