Enum RulesToolkit.EventAvailability

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AVAILABLE
      The type has events available in the collection.
      DISABLED
      The type was actively disabled in the collection.
      ENABLED
      The type was actively enabled in the collection.
      NONE
      The type is known in the collection, but no events were found.
      UNKNOWN
      The type is unknown in the collection.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int availabilityScore  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EventAvailability​(int availabilityScore)  
    • Field Detail

      • availabilityScore

        private final int availabilityScore
    • Constructor Detail

      • EventAvailability

        private EventAvailability​(int availabilityScore)
    • Method Detail

      • values

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

        public static RulesToolkit.EventAvailability 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
      • isLessAvailableThan

        public boolean isLessAvailableThan​(RulesToolkit.EventAvailability availability)
        Returns true if this EventAvailability is less available than the provided one.
        Parameters:
        availability - the RulesToolkit.EventAvailability to compare to.
        Returns:
        true if this EventAvailability is less available than the provided one, false otherwise.