Class Triggers

  • All Implemented Interfaces:
    java.lang.Iterable<TriggerMetadata>

    public final class Triggers
    extends java.lang.Object
    implements java.lang.Iterable<TriggerMetadata>
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • get

        public java.util.Optional<TriggerMetadata> get​(java.lang.String name)
        Get the trigger with the specified name
        Parameters:
        name - a non-qualified trigger name
        Returns:
        an empty Optional if the trigger name is not found; a non-empty optional of TriggerMetadata otherwise
      • with

        public Triggers with​(TriggerMetadata trigger)
        Create a Triggers instance with the provided trigger added
      • without

        public Triggers without​(java.lang.String name)
        Creates a Triggers instance with the trigger with the provided name removed
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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