src/main/java/org/jsoup/parser/TokenQueue.java
/**
     * Tests if the queue matches the sequence (as with match), and if they do, removes the matched string from the
     * queue.
     * @param seq String to search for, and if found, remove from queue.
     * @return true if found and removed, false if not found.
     */
Tests if the queue matches the sequence (as with match), and if they do, removes the matched string from the
queue.
@param seq String to search for, and if found, remove from queue.
@return true if found and removed, false if not found.
Tests if the queue matches the sequence ( as with match ) and if they do removes the matched string from the queue . @param seq String to search for and if found remove from queue . @return true if found and removed false if not found .
public boolean matchChomp(String seq) {
        if (matches(seq)) {
            consume(seq);
            return true;
        } else {
            return false;
        }
    }
public boolean matchChomp ( String seq ) { if ( matches ( seq ) ) { consume ( seq ) ; return true ; } else { return false ; } }
Tests if the queue matches the sequence (as with match), and if they do, removes the matched string from the
 queue.
Tests if the queue matches the sequence ( as with match ) and if they do removes the matched string from the queue .