From 6c26fdcb7f8c82c540d4cdf8ab6f8bf8ee1ab845 Mon Sep 17 00:00:00 2001 From: godotg Date: Wed, 20 Sep 2023 22:28:21 +0800 Subject: [PATCH] ref[storage]: rename method --- storage/src/main/java/com/zfoo/storage/StorageContext.java | 4 ++-- storage/src/main/java/com/zfoo/storage/model/IStorage.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/storage/src/main/java/com/zfoo/storage/StorageContext.java b/storage/src/main/java/com/zfoo/storage/StorageContext.java index da5bfc14a..4c6ca0f6d 100644 --- a/storage/src/main/java/com/zfoo/storage/StorageContext.java +++ b/storage/src/main/java/com/zfoo/storage/StorageContext.java @@ -60,8 +60,8 @@ public static List getList(Class clazz) { return instance.storageManager.getStorage(clazz).getList(); } - public static List getIndexes(Class clazz, Func1 function, Index index) { - return instance.storageManager.getStorage(clazz).getIndexes(function, index); + public static List getIndexes(Class clazz, Func1 func, INDEX index) { + return instance.storageManager.getStorage(clazz).getIndexes(func, index); } public static V getUniqueIndex(Class clazz, Func1 func, INDEX uindex) { diff --git a/storage/src/main/java/com/zfoo/storage/model/IStorage.java b/storage/src/main/java/com/zfoo/storage/model/IStorage.java index d86ab497c..a9a02a606 100644 --- a/storage/src/main/java/com/zfoo/storage/model/IStorage.java +++ b/storage/src/main/java/com/zfoo/storage/model/IStorage.java @@ -50,10 +50,10 @@ public interface IStorage { IdDef getIdDef(); - List getIndexes(Func1 function, INDEX index); + List getIndexes(Func1 func, INDEX index); @Nullable - V getUniqueIndex(Func1 function, INDEX uindex); + V getUniqueIndex(Func1 func, INDEX uindex); int size(); }