public abstract class StringListTrait extends AbstractTrait
| Modifier and Type | Class and Description |
|---|---|
static class |
StringListTrait.Builder<TRAIT extends StringListTrait,BUILDER extends StringListTrait.Builder>
Abstract builder to build a StringList trait.
|
static class |
StringListTrait.Provider<T extends StringListTrait>
Trait provider that expects a list of string values.
|
static interface |
StringListTrait.StringListTraitConstructor<T extends StringListTrait>
Factory method to create a StringList provider.
|
| Constructor and Description |
|---|
StringListTrait(ShapeId id,
java.util.List<java.lang.String> values,
FromSourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
protected Node |
createNode()
The result of toNode is used for hashCodes and equality.
|
java.util.List<java.lang.String> |
getValues() |
equals, getSourceLocation, hashCode, setNodeCache, toNode, toShapeId, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitflatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteNamepublic StringListTrait(ShapeId id, java.util.List<java.lang.String> values, FromSourceLocation sourceLocation)
id - The id of the trait being created.values - The string values of the trait.sourceLocation - Where the trait was defined.protected final Node createNode()
AbstractTraitcreateNode in class AbstractTraitpublic final java.util.List<java.lang.String> getValues()