Class GridSearchStrategy

    • Constructor Detail

      • GridSearchStrategy

        public GridSearchStrategy​(IConfigRegistry configRegistry,
                                  boolean wrapSearch,
                                  boolean columnFirst)
      • GridSearchStrategy

        @Deprecated
        public GridSearchStrategy​(IConfigRegistry configRegistry,
                                  boolean wrapSearch,
                                  String searchDirection,
                                  boolean columnFirst)
        Deprecated.
        Use constructor with SearchDirection parameter
        Parameters:
        configRegistry - The ConfigRegistry.
        wrapSearch - Flag to configure if the search should wrap.
        searchDirection - The SearchDirection.
        columnFirst - Flag to configure if the search should be by column.
      • GridSearchStrategy

        public GridSearchStrategy​(IConfigRegistry configRegistry,
                                  boolean wrapSearch,
                                  SearchDirection searchDirection,
                                  boolean columnFirst)
        Parameters:
        configRegistry - The ConfigRegistry.
        wrapSearch - Flag to configure if the search should wrap.
        searchDirection - The SearchDirection.
        columnFirst - Flag to configure if the search should be by column.
        Since:
        2.0
    • Method Detail

      • executeSearch

        public PositionCoordinate executeSearch​(Object valueToMatch)
        Description copied from interface: ISearchStrategy
        Search for the given value and return the coordinates of the matching cell.
        Parameters:
        valueToMatch - The value to search for.
        Returns:
        The coordinates of the cell that contains the given value.