- All Known Implementing Classes:
ExhaustiveClusterStrategy
public interface ClusterStrategy
Strategy interface for clustering
SymbolCell
s and LetterCell
s
into one or more CellCluster
s 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 ofLetterCell
s into one or moreCellCluster
s based on the implemented strategy.clusterSymbols
(Collection<? extends Cell> symbolCells) Clusters a given collection ofSymbolCell
s into one or moreCellCluster
s based on the implemented strategy.
-
Method Details
-
clusterSymbols
Clusters a given collection ofSymbolCell
s into one or moreCellCluster
s based on the implemented strategy.- Parameters:
symbolCells
- a collection ofSymbolCell
s to be clustered.- Returns:
- a list of
CellCluster
s representing the groupedSymbolCell
s.
-
clusterLetters
Clusters a given collection ofLetterCell
s into one or moreCellCluster
s based on the implemented strategy.- Parameters:
letterCells
- a collection ofLetterCell
s to be clustered.- Returns:
- a list of
CellCluster
s representing the groupedLetterCell
s.
-