Interface ReadOnlyFunctionCollection
-
public interface ReadOnlyFunctionCollection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadOnlyFunctionCollectioncopy()List<SKFunction<?>>getAll()SKFunction<?>getFunction(String functionName)<T extends SKFunction>
TgetFunction(String functionName, Class<T> clazz)Get function with the given SKFunction type argument.StringgetSkillName()
-
-
-
Method Detail
-
getSkillName
String getSkillName()
-
getFunction
SKFunction<?> getFunction(String functionName)
-
getFunction
<T extends SKFunction> T getFunction(String functionName, @Nullable Class<T> clazz)
Get function with the given SKFunction type argument.- Type Parameters:
T- SKFunction parameter type- Parameters:
functionName- the name of the function to retrieveclazz- The class of the SKFunction parameter type- Returns:
- The given function
- Throws:
RuntimeException- if the given entry is not of the expected type
-
copy
@CheckReturnValue ReadOnlyFunctionCollection copy()
- Returns:
- A clone of this collection
-
getAll
List<SKFunction<?>> getAll()
- Returns:
- An unmodifiable list of all functions
-
-