Class AbstractWebRequestRule<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      protected abstract java.util.Collection<T> getContent()
      Return the discrete items a request condition is composed of.
      protected abstract java.lang.String getToStringInfix()
      The notation to use when printing discrete items of content.
      int hashCode()  
      boolean isEmpty()
      Indicates whether this condition is empty, i.e.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • AbstractWebRequestRule

        public AbstractWebRequestRule()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Indicates whether this condition is empty, i.e. whether it contains any discrete items.
        Returns:
        true if empty; false otherwise
      • getContent

        protected abstract java.util.Collection<T> getContent()
        Return the discrete items a request condition is composed of.

        For example URL patterns, HTTP request methods, param expressions, etc.

        Returns:
        a collection of objects (never null)
      • getToStringInfix

        protected abstract java.lang.String getToStringInfix()
        The notation to use when printing discrete items of content.

        For example " || " for URL patterns or " && " for param expressions.

      • equals

        public boolean equals​(@Nullable
                              java.lang.Object other)
        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