public class DirectionProperty extends EnumProperty<Direction>
Property.Value<T extends Comparable<T>>
Modifier | Constructor and Description |
---|---|
protected |
DirectionProperty(String name,
Collection<Direction> values) |
Modifier and Type | Method and Description |
---|---|
static DirectionProperty |
of(String name,
Collection<Direction> values)
Creates a direction property which only supports specific values
|
static DirectionProperty |
of(String name,
Direction[] values)
Creates a direction property which only supports specific values
|
static DirectionProperty |
of(String name,
Predicate<Direction> filter)
Creates a direction property.
|
computeHashCode, equals, getValues, name, of, of, of, of, parse
createValue, createValue, getName, getType, getValueCodec, hashCode, stream, toString
protected DirectionProperty(String name, Collection<Direction> values)
public static DirectionProperty of(String name, Predicate<Direction> filter)
name
- the name of this propertyfilter
- a filter which specifies if a value is allowedpublic static DirectionProperty of(String name, Direction[] values)
name
- the name of this propertyvalues
- the values this property can havepublic static DirectionProperty of(String name, Collection<Direction> values)
name
- the name of this propertyvalues
- the values this property can have