Java Code Examples for com.orhanobut.hawk.Hawk#delete()
The following examples show how to use
com.orhanobut.hawk.Hawk#delete() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java From hawk with Apache License 2.0 | 5 votes |
private void timeHawkDelete() { long startTime = System.currentTimeMillis(); Hawk.delete("key"); long endTime = System.currentTimeMillis(); System.out.println("Hawk.count: " + (endTime - startTime) + "ms"); }
Example 2
Source File: Security.java From leafpicrevived with GNU General Public License v3.0 | 4 votes |
public static boolean clearPassword() { return Hawk.delete("password_hash"); }
Example 3
Source File: UserStorage.java From mvvm-starter with MIT License | 4 votes |
@Override public void delete (Integer id) { Hawk.delete(String.format(K.USER_DETAIL, id)); }
Example 4
Source File: BillingCache.java From RxIAPv3 with Apache License 2.0 | 4 votes |
public void remove(String productId) { if(Hawk.contains(productId)) Hawk.delete(productId); if(productIds.contains(productId)) productIds.remove(productId); }