com.github.mustachejava.reflect
Class ClassGuard

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

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

Ensure that the class of the current scope is that same as when this wrapper was generated. User: spullara Date: 4/13/12 Time: 9:23 AM To change this template use File | Settings | File Templates.


Constructor Summary
ClassGuard(int scopeIndex, java.lang.Object scope)
           
 
Method Summary
 boolean apply(java.lang.Object[] scopes)
           
 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

ClassGuard

public ClassGuard(int scopeIndex,
                  java.lang.Object scope)
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(java.lang.Object[] scopes)
Specified by:
apply in interface com.google.common.base.Predicate<java.lang.Object[]>


Copyright © 2012. All Rights Reserved.