Skip to content

Commit

Permalink
ref[storage]: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Sep 20, 2023
1 parent fc1c4e9 commit 6c26fdc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions storage/src/main/java/com/zfoo/storage/StorageContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ public static <V> List<V> getList(Class<V> clazz) {
return instance.storageManager.getStorage(clazz).getList();
}

public static <Index, V> List<V> getIndexes(Class<V> clazz, Func1<V, Index> function, Index index) {
return instance.storageManager.getStorage(clazz).getIndexes(function, index);
public static <INDEX, V> List<V> getIndexes(Class<V> clazz, Func1<V, INDEX> func, INDEX index) {
return instance.storageManager.getStorage(clazz).getIndexes(func, index);
}

public static <INDEX, V> V getUniqueIndex(Class<V> clazz, Func1<V, INDEX> func, INDEX uindex) {
Expand Down
4 changes: 2 additions & 2 deletions storage/src/main/java/com/zfoo/storage/model/IStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public interface IStorage<K, V> {

IdDef getIdDef();

<INDEX> List<V> getIndexes(Func1<V, INDEX> function, INDEX index);
<INDEX> List<V> getIndexes(Func1<V, INDEX> func, INDEX index);

@Nullable
<INDEX> V getUniqueIndex(Func1<V, INDEX> function, INDEX uindex);
<INDEX> V getUniqueIndex(Func1<V, INDEX> func, INDEX uindex);

int size();
}

0 comments on commit 6c26fdc

Please sign in to comment.