Interface ContextFactory<T>
- Type Parameters:
T
- type of elements of created contexts.
- All Known Implementing Classes:
TrieContext.Factory
public interface ContextFactory<T>
Factory of contexts, which provides convenient APIs to create contexts.
-
Method Summary
-
Method Details
-
getEmptyContext
Context getEmptyContext()- Returns:
- the empty context.
-
make
- Returns:
- the context with one element.
-
make
- Returns:
- the context that consists of given elements.
-
makeLastK
- Returns:
- a context with last k elements of given context.
-
append
Constructs a context by appending a context element to a parent context. The length of the resulting context will be restricted by given limit.- Returns:
- the resulting context.
-