FileDocCategorySizeDatePackage
MockCache.javaAPI DocApache Ant 1.701888Wed Dec 13 06:16:20 GMT 2006org.apache.tools.ant.types.selectors

MockCache

public class MockCache extends Object implements org.apache.tools.ant.types.selectors.modifiedselector.Cache

Fields Summary
public boolean
debug
public boolean
saved
Constructors Summary
public MockCache()



      
        log("()");
    
Methods Summary
public voiddelete()

        log(".delete()");
    
public java.lang.Objectget(java.lang.Object key)

        log(".get("+key+")");
        return key;
    
public booleanisValid()

        log(".isValid()");
        return true;
    
public java.util.Iteratoriterator()

        log("iterator()");
        return null;
    
public voidload()

        log(".load()");
    
private voidlog(java.lang.String msg)

        if (debug) System.out.println(this+msg);
    
public voidput(java.lang.Object key, java.lang.Object value)

        log(".put("+key+", "+value+")");
        saved = false;
    
public voidsave()

        log(".save()");
        saved = true;
    
public java.lang.StringtoString()

        return "MockCache@" + hashCode();