LimeWire Consolidated API

com.limegroup.gnutella.dht.db
Class AbstractPushProxiesValue

java.lang.Object
  extended by com.limegroup.gnutella.dht.db.AbstractPushProxiesValue
All Implemented Interfaces:
PushProxiesValue, Serializable, DHTValue
Direct Known Subclasses:
PushProxiesValueImpl

public abstract class AbstractPushProxiesValue
extends Object
implements PushProxiesValue

An implementation of DHTValue for Gnutella Push Proxies.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.limewire.mojito.db.DHTValue
DHTValue.EmptyValue
 
Field Summary
static DHTValueType PUSH_PROXIES
          DHTValueType for Push Proxies
static Version VERSION
          Version of PushProxiesDHTValue
 
Fields inherited from interface org.limewire.mojito.db.DHTValue
EMPTY_VALUE
 
Constructor Summary
AbstractPushProxiesValue(Version version)
           
 
Method Summary
 boolean equals(Object obj)
          Value based comparison with other object.
 DHTValueType getValueType()
          Returns the type of the value.
 Version getVersion()
          Returns the version of the value.
 int hashCode()
           
protected static byte[] serialize(PushProxiesValue value)
          A helper method to serialize PushProxiesValues
 int size()
          Returns the size of the value payload in byte
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.limegroup.gnutella.dht.db.PushProxiesValue
getFeatures, getFwtVersion, getGUID, getPort, getPushProxies, getTLSInfo
 
Methods inherited from interface org.limewire.mojito.db.DHTValue
getValue, write
 

Field Detail

PUSH_PROXIES

public static final DHTValueType PUSH_PROXIES
DHTValueType for Push Proxies


VERSION

public static final Version VERSION
Version of PushProxiesDHTValue

Constructor Detail

AbstractPushProxiesValue

public AbstractPushProxiesValue(Version version)
Method Detail

getValueType

public DHTValueType getValueType()
Description copied from interface: DHTValue
Returns the type of the value.

Specified by:
getValueType in interface DHTValue

getVersion

public Version getVersion()
Description copied from interface: DHTValue
Returns the version of the value.

Specified by:
getVersion in interface DHTValue

size

public int size()
Description copied from interface: DHTValue
Returns the size of the value payload in byte

Specified by:
size in interface DHTValue

equals

public final boolean equals(Object obj)
Value based comparison with other object.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

serialize

protected static byte[] serialize(PushProxiesValue value)
A helper method to serialize PushProxiesValues


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.