- All Known Implementing Classes:
ExhaustiveClusterStrategy
public interface ClusterStrategy
Strategy interface for clustering
SymbolCells and LetterCells
into one or more CellClusters based on the implemented strategy.
Implementations of this interface define how cells are grouped together according to specific rules or patterns.
- Author:
- Kheagen Haskins
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionclusterLetters(Collection<? extends Cell> letterCells) Clusters a given collection ofLetterCells into one or moreCellClusters based on the implemented strategy.clusterSymbols(Collection<? extends Cell> symbolCells) Clusters a given collection ofSymbolCells into one or moreCellClusters based on the implemented strategy.
-
Method Details
-
clusterSymbols
Clusters a given collection ofSymbolCells into one or moreCellClusters based on the implemented strategy.- Parameters:
symbolCells- a collection ofSymbolCells to be clustered.- Returns:
- a list of
CellClusters representing the groupedSymbolCells.
-
clusterLetters
Clusters a given collection ofLetterCells into one or moreCellClusters based on the implemented strategy.- Parameters:
letterCells- a collection ofLetterCells to be clustered.- Returns:
- a list of
CellClusters representing the groupedLetterCells.
-