LimeWire Consolidated API

com.limegroup.gnutella.spam
Class ApproximateSizeToken

java.lang.Object
  extended by com.limegroup.gnutella.spam.Token
      extended by com.limegroup.gnutella.spam.ApproximateSizeToken
All Implemented Interfaces:
Serializable

public class ApproximateSizeToken
extends Token

A token representing the approximate file size

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.limegroup.gnutella.spam.Token
rating
 
Constructor Summary
ApproximateSizeToken(long size)
           
 
Method Summary
 boolean equals(Object o)
           
protected  float getWeight()
          Returns a weight between 0 and 1 that determines how sensitive this token's spam rating is to updates - 0 means an update has no effect on the rating, while 1 means an update completely changes the rating.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.limegroup.gnutella.spam.Token
getRating, updateRating
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApproximateSizeToken

public ApproximateSizeToken(long size)
Method Detail

getWeight

protected float getWeight()
Description copied from class: Token
Returns a weight between 0 and 1 that determines how sensitive this token's spam rating is to updates - 0 means an update has no effect on the rating, while 1 means an update completely changes the rating.

Specified by:
getWeight in class Token
Returns:
a weight between 0 (not sensitive) and 1 (sensitive)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.