com.limegroup.gnutella.gui.search
Class TableLineGrouper

java.lang.Object
  extended bycom.limegroup.gnutella.gui.search.TableLineGrouper

public final class TableLineGrouper
extends java.lang.Object

Used by TableLineModel to quickly find similar TableLines. This takes advanteage of the fact that two TableLine's are similar only if their file sizes are similar. A typical TableLineGrouper is a set of TableLine's, {a1,..., an}.


Constructor Summary
TableLineGrouper()
           
 
Method Summary
 void add(TableLine line)
          Adds line to this.
 void clear()
           
 boolean isEmpty()
          Returns true if empty, i.e., cleared.
 TableLine match(TableLine line)
          Returns a line G in this s.t.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLineGrouper

public TableLineGrouper()
Method Detail

isEmpty

public boolean isEmpty()
Returns true if empty, i.e., cleared.


clear

public void clear()

match

public TableLine match(TableLine line)
Returns a line G in this s.t. G.similar(line), or null of no such line exists.


add

public void add(TableLine line)
Adds line to this. Generally there should be no lines similar to line in this, i.e., this.match(line)==null, but this isn't strictly required.