Enum ExtraValue.CoordinateType

    • Enum Constant Detail

      • SPOT

        public static final ExtraValue.CoordinateType SPOT
        The extra values are attached to spots. Ie. position/column coordinates.
      • POSITION

        public static final ExtraValue.CoordinateType POSITION
        The extra values are attached to position coordinates only.
    • Field Detail

      • value

        private final int value
        The integer value of this coordinate type. Used when stored in the database.
    • Constructor Detail

      • CoordinateType

        private CoordinateType​(int value)
    • Method Detail

      • values

        public static ExtraValue.CoordinateType[] 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 (ExtraValue.CoordinateType c : ExtraValue.CoordinateType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExtraValue.CoordinateType valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromValue

        public static ExtraValue.CoordinateType fromValue​(int value)
        Get the CoordinateType object when you know the integer code.
        Parameters:
        value - The integer value
        Returns:
        The CoordinateType for the integer value, or null if not found
      • getValue

        public int getValue()
        Get the integer value that is used when storing a CoordinateType in the database.
        Returns:
        The intger value of this coordinate type
      • getVirtualTable

        public abstract VirtualTable getVirtualTable​(Type valueType)
        Get the VirtualTable used to store extra values of this coordinate type given the value type.
        Parameters:
        valueType - The type of the values to store