/** * Searches for the next occurrence of the pattern * @return true if a match is found (false otherwise) * @see #find(int) */ public boolean find() { switch (findType) { case FIND_NONOVERLAPPING: return findNextNonOverlapping(); case FIND_ALL: return findNextAll(); default: throw new UnsupportedOperationException("Unsupported findType " + findType); } }
public boolean find() { switch (findType) { case FIND_NONOVERLAPPING: return findNextNonOverlapping(); case FIND_ALL: return findNextAll(); default: throw new UnsupportedOperationException("Unsupported findType " + findType); } }
/** * Searches for the next occurrence of the pattern * @return true if a match is found (false otherwise) * @see #find(int) */ public boolean find() { switch (findType) { case FIND_NONOVERLAPPING: return findNextNonOverlapping(); case FIND_ALL: return findNextAll(); default: throw new UnsupportedOperationException("Unsupported findType " + findType); } }
/** * Searches for the next occurrence of the pattern * @return true if a match is found (false otherwise) * @see #find(int) */ public boolean find() { switch (findType) { case FIND_NONOVERLAPPING: return findNextNonOverlapping(); case FIND_ALL: return findNextAll(); default: throw new UnsupportedOperationException("Unsupported findType " + findType); } }
/** * Searches for the next occurrence of the pattern * @return true if a match is found (false otherwise) * @see #find(int) */ public boolean find() { switch (findType) { case FIND_NONOVERLAPPING: return findNextNonOverlapping(); case FIND_ALL: return findNextAll(); default: throw new UnsupportedOperationException("Unsupported findType " + findType); } }