Class DirectionProperty


public class DirectionProperty
extends EnumProperty<Direction>
  • Constructor Details

  • Method Details

    • of

      public static DirectionProperty of​(String name, Predicate<Direction> filter)
      Creates a direction property.
      Parameters:
      name - the name of this property
      filter - a filter which specifies if a value is allowed
    • of

      public static DirectionProperty of​(String name, Direction[] values)
      Creates a direction property which only supports specific values
      Parameters:
      name - the name of this property
      values - the values this property can have
    • of

      public static DirectionProperty of​(String name, Collection<Direction> values)
      Creates a direction property which only supports specific values
      Parameters:
      name - the name of this property
      values - the values this property can have