com.limegroup.gnutella.util
Interface Weighable


public interface Weighable

The instances of classes that implement this interface are weighable i.e. they can be compared based upon their weight (or importance). This interface allows the weight to be increased only.


Method Summary
 void addWeight(int weight)
          sets the weight for this instance
 int getWeight()
          Gives the weight of the instance
 

Method Detail

getWeight

public int getWeight()
Gives the weight of the instance

Returns:
the weight

addWeight

public void addWeight(int weight)
sets the weight for this instance

Parameters:
weight - the weight