diff --git a/src/main/java/org/ligi/passandroid/model/PassStore.java b/src/main/java/org/ligi/passandroid/model/PassStore.java index e4a30481..bd2b8e0c 100644 --- a/src/main/java/org/ligi/passandroid/model/PassStore.java +++ b/src/main/java/org/ligi/passandroid/model/PassStore.java @@ -1,12 +1,11 @@ package org.ligi.passandroid.model; import com.google.common.base.Optional; - import java.util.List; public interface PassStore { - public enum SortOrder { + enum SortOrder { DATE(0), TYPE(1); @@ -22,7 +21,7 @@ public interface PassStore { } - public class CountedType implements Comparable { + class CountedType implements Comparable { public final String type; public final Integer count; @@ -37,35 +36,35 @@ public interface PassStore { } } - public void preCachePassesList(); + void preCachePassesList(); - public void deleteCacheForId(String id); + void deleteCacheForId(String id); - public void deleteCache(); + void deleteCache(); - public void deleteCache(String id); + void deleteCache(String id); - public void refreshPassesList(); + void refreshPassesList(); - public int passCount(); + int passCount(); - public boolean isEmpty(); + boolean isEmpty(); - public Pass getPassbookAt(int pos); + Pass getPassbookAt(int pos); - public Pass getPassbookForId(String id); + Pass getPassbookForId(String id); - public void sort(SortOrder order); + void sort(SortOrder order); - public List getCountedTypes(); + List getCountedTypes(); - public Optional getCurrentPass(); + Optional getCurrentPass(); - public void setCurrentPass(Pass pass); + void setCurrentPass(Pass pass); - public void setCurrentPass(Optional pass); + void setCurrentPass(Optional pass); - public boolean deletePassWithId(String id); + boolean deletePassWithId(String id); - public String getPathForID(String id); + String getPathForID(String id); }