Package ru.cwcode.commands.extra
Class RepositoryAccessor<E,K,S extends Sender>
java.lang.Object
ru.cwcode.commands.extra.RepositoryAccessor<E,K,S>
-
Constructor Summary
ConstructorsConstructorDescriptionRepositoryAccessor(BiFunction<E, S, K> elementToKey, BiFunction<K, S, E> keyToElement, Function<K, String> keyToString, Function<String, K> stringToKey, Function<S, Collection<K>> keys) -
Method Summary
Modifier and TypeMethodDescriptionelementToKey(E element, S sender) keyToElement(S sender, K key) keyToString(K key) stringToKey(String string)
-
Constructor Details
-
RepositoryAccessor
-
-
Method Details
-
keys
-
elementToKey
-
keyToElement
-
keyToString
-
stringToKey
-
keyArgument
-