com.github.mustachejava.reflect
Class DepthGuard

java.lang.Object
  extended by com.github.mustachejava.reflect.DepthGuard
All Implemented Interfaces:
com.google.common.base.Predicate<java.lang.Object[]>

public class DepthGuard
extends java.lang.Object
implements com.google.common.base.Predicate<java.lang.Object[]>

Check that there are the same number of scope levels.


Constructor Summary
DepthGuard(int length)
           
 
Method Summary
 boolean apply(java.lang.Object[] objects)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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)
Specified by:
equals in interface com.google.common.base.Predicate<java.lang.Object[]>
Overrides:
equals in class java.lang.Object

apply

public boolean apply(@Nullable
                     java.lang.Object[] objects)
Specified by:
apply in interface com.google.common.base.Predicate<java.lang.Object[]>


Copyright © 2012. All Rights Reserved.