Class DepthGuard

  • All Implemented Interfaces:
    Guard

    public class DepthGuard
    extends java.lang.Object
    implements Guard
    Check that there are the same number of scope levels.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int length  
    • Constructor Summary

      Constructors 
      Constructor Description
      DepthGuard​(int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(java.util.List<java.lang.Object> objects)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • length

        protected final int length
    • Constructor Detail

      • DepthGuard

        public DepthGuard​(int length)
    • Method Detail

      • hashCode

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

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

        public boolean apply​(java.util.List<java.lang.Object> objects)
        Specified by:
        apply in interface Guard
      • toString

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