FileDocCategorySizeDatePackage
MockCache.javaAPI DocAndroid 5.1 API1548Thu Mar 12 22:22:56 GMT 2015com.android.volley.mock

MockCache

public class MockCache extends Object implements com.android.volley.Cache

Fields Summary
public boolean
clearCalled
public boolean
getCalled
private Entry
mFakeEntry
public boolean
putCalled
public String
keyPut
public Entry
entryPut
Constructors Summary
Methods Summary
public voidclear()

    
       
        clearCalled = true;
    
public Entryget(java.lang.String key)

        getCalled = true;
        return mFakeEntry;
    
public voidinitialize()

	
public voidinvalidate(java.lang.String key, boolean fullExpire)

    
public voidput(java.lang.String key, Entry entry)


    
          
        putCalled = true;
        keyPut = key;
        entryPut = entry;
    
public voidremove(java.lang.String key)

    
public voidsetEntryToReturn(Entry entry)


        
        mFakeEntry = entry;