Class EnumCondition<T extends java.lang.Enum<?>>

  • All Implemented Interfaces:
    Condition<T>, java.io.Serializable

    public class EnumCondition<T extends java.lang.Enum<?>>
    extends java.lang.Object
    implements Condition<T>
    Condition that specifies a set of enum values, any of which will pass.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumCondition​(T... values)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T[] getValues()  
      boolean passes​(T value)
      Returns whether the provided value passes the condition.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EnumCondition

        public EnumCondition​(T... values)
    • Method Detail

      • getValues

        public T[] getValues()
      • passes

        public boolean passes​(T value)
        Description copied from interface: Condition
        Returns whether the provided value passes the condition.
        Specified by:
        passes in interface Condition<T extends java.lang.Enum<?>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object