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 Summary

    Modifier and Type Method Description
    Optional<Pattern> trim​(List<T> source)
    Attempts to trim the list of objects by finding a Pattern.
  • Method Details

    • trim

      Optional<Pattern> trim​(List<T> source)
      Attempts to trim the list of objects by finding a Pattern.
      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