private boolean findInList ( String [ ] address , int index , FilterCellSlowStr cell , int endIndex ) { if ( cell . getWildcardCell ( ) != null ) { // a wildcard, match found return true ; } // no wildcard so far, see if there is a still a path FilterCellSlowStr nextCell = cell . findNextCell ( address [ index ] ) ; if ( nextCell != null ) { // see if we are at the end of a valid path if ( index == endIndex ) { // this path found a match, unwind returning true return true ; } // ok so far, recursively search this path return findInList ( address , index + 1 , nextCell , endIndex ) ; } // this path did not find a match. return false ; }
Determine recursively if an address is in the address tree .