Package 

Class DiskLruCache.Editor

    • Method Summary

      Modifier and Type Method Description
      String getString(int index) Returns the last committed value as a string, or null if no valuehas been committed.
      File getFile(int index)
      void set(int index, String value) Sets the value at {@code index} to {@code value}.
      void commit() Commits this edit so it is visible to readers.
      void abort() Aborts this edit.
      void abortUnlessCommitted()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getString

         String getString(int index)

        Returns the last committed value as a string, or null if no valuehas been committed.

      • set

         void set(int index, String value)

        Sets the value at {@code index} to {@code value}.

      • 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.