Class MapGuard

  • All Implemented Interfaces:
    Guard

    public class MapGuard
    extends java.lang.Object
    implements Guard
    Guards whether or not a name was present in the map.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapGuard​(ObjectHandler oh, int scopeIndex, java.lang.String name, boolean contains, Wrapper[] wrappers)  
    • Method Summary

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

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

      • scopeIndex

        protected final int scopeIndex
      • name

        protected final java.lang.String name
      • contains

        protected final boolean contains
      • wrappers

        protected final Wrapper[] wrappers
    • Constructor Detail

      • MapGuard

        public MapGuard​(ObjectHandler oh,
                        int scopeIndex,
                        java.lang.String name,
                        boolean contains,
                        Wrapper[] wrappers)
    • Method Detail

      • 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