-
public final class DiskLruCache.EditorEdits the values for an entry.
-
-
Method Summary
Modifier and Type Method Description StringgetString(int index)Returns the last committed value as a string, or null if no valuehas been committed. FilegetFile(int index)voidset(int index, String value)Sets the value at {@code index}to{@code value}.voidcommit()Commits this edit so it is visible to readers. voidabort()Aborts this edit. voidabortUnlessCommitted()-
-
Method Detail
-
getString
String getString(int index)
Returns the last committed value as a string, or null if no valuehas been committed.
-
commit
void commit()
Commits this edit so it is visible to readers. This releases theedit lock so another edit may be started on the same key.
-
abort
void abort()
Aborts this edit. This releases the edit lock so another edit may bestarted on the same key.
-
abortUnlessCommitted
void abortUnlessCommitted()
-
-
-
-