Code example for LinkedList

Methods: clear

0
    } 
     
    public synchronized void clear() { 
        lowestSeqNumber = -1;
        highestSeqNumber = -1;
        ranges.clear();
    } 
     
    private static class Range { 
        int start; // inclusive
        int end;   // inclusive
         
        @Override 
		public String toString() {
            return "Range:"+start+"->"+end;
        } 
    } 
     
    /** 
     * We received a packet! 
     * @param seqNumber The number of the packet.