Enum BinaryInteraction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<BinaryInteraction>

    public enum BinaryInteraction
    extends java.lang.Enum<BinaryInteraction>
    Defines different types of interactions between two elements
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANY
      Any interaction
      CROSS
      Two elements crossing
      TOUCH
      One element touching any point of another element
      TOUCH_END_POINT
      One element touching one end point of a line
      TOUCH_MID_POINT
      One element touching some mid point of a line
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOrdinal()  
      static BinaryInteraction valueOf​(int value)
      Returns the enum constant of this type with the specified name.
      static BinaryInteraction valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static BinaryInteraction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • TOUCH_END_POINT

        public static final BinaryInteraction TOUCH_END_POINT
        One element touching one end point of a line
      • TOUCH_MID_POINT

        public static final BinaryInteraction TOUCH_MID_POINT
        One element touching some mid point of a line
      • TOUCH

        public static final BinaryInteraction TOUCH
        One element touching any point of another element
    • Method Detail

      • values

        public static BinaryInteraction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BinaryInteraction c : BinaryInteraction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BinaryInteraction valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getOrdinal

        public int getOrdinal()
      • valueOf

        public static BinaryInteraction valueOf​(int value)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null