Enum RuleManager.Operation

  • All Implemented Interfaces:
    Serializable, Comparable<RuleManager.Operation>
    Enclosing interface:
    RuleManager

    public static enum RuleManager.Operation
    extends Enum<RuleManager.Operation>
    Rules are applied against an unmodified Graph to check whether the proposed mutated state is valid. This is deliberate to avoid, for example, costly "undo" operations if we were to mutate the state first and then validate. An invalidate state would need to be reverted. If we decided to change this we'd need to mutate the graph state first and then validate the whole graph.
    • Method Detail

      • values

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

        public static RuleManager.Operation 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