Class DirectionProperty


public class DirectionProperty
extends EnumProperty<Direction>
Represents a property that has direction values.

See Properties for example usages.

  • Constructor Details

  • Method Details

    • of

      public static DirectionProperty of​(String name, Predicate<Direction> filter)
      Creates a direction property with the values allowed by the given filter out of all 6 directions.
      Parameters:
      name - the name of the property; see the note on the name
      filter - the filter which specifies if a value is allowed; required to allow 2 or more values
    • of

      public static DirectionProperty of​(String name, Direction[] values)
      Creates a direction property with the given values.
      Parameters:
      name - the name of the property; see the note on the name
      values - the values the property contains; required to have 2 or more values
    • of

      public static DirectionProperty of​(String name, Collection<Direction> values)
      Creates a direction property with the given values.
      Parameters:
      name - the name of the property; see the note on the name
      values - the values the property contains; required to have 2 or more values