Interface TrimOperation<T>
- Type Parameters:
T
- type of objects the trimmer works upon
- All Known Implementing Classes:
TrimCommonPathRoot
,TrimConstantString
,TrimConstantSubstring
,TrimInteger
,TrimOperationOrList
,TrimSplitByChar
public interface TrimOperation<T>
Attempts to trim the list of objects from left or right.
- Author:
- Owen Feehan
-
Method Details
-
trim
Attempts to trim the list of objects by finding aPattern
.- Parameters:
source
- list of objects- Returns:
- if successful, a pattern with the trimmed elements (and what remains to be resolved) as elements, otherwise
Optional.empty()
if unsuccessful
-