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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
flatMapStream, getIdiomaticTraitName, getIdiomaticTraitName, isSynthetic, makeAbsoluteName, makeAbsoluteName
public 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()
AbstractTrait
createNode
in class AbstractTrait
public final java.util.List<java.lang.String> getValues()