JXTA

net.jxta.impl.cm
Class SrdiIndex.Entry

java.lang.Object
  extended by net.jxta.impl.cm.SrdiIndex.Entry
Enclosing class:
SrdiIndex

public static final class SrdiIndex.Entry
extends Object

An entry in the index tables.


Field Summary
 long expiration
           
 PeerID peerid
           
 
Constructor Summary
SrdiIndex.Entry(PeerID peerid, long expiration)
          Peer Pointer reference
 
Method Summary
 boolean equals(Object obj)
          
 long getExpiration()
          Return the absolute time in milliseconds at which this entry will expire.
 int hashCode()
          
 boolean isExpired()
          Return true if this entry is expired.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

peerid

public final PeerID peerid

expiration

public final long expiration
Constructor Detail

SrdiIndex.Entry

public SrdiIndex.Entry(PeerID peerid,
                       long expiration)
Peer Pointer reference

Parameters:
peerid - PeerID for this entry
expiration - the expiration for this entry
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getExpiration

public long getExpiration()
Return the absolute time in milliseconds at which this entry will expire.

Returns:
The absolute time in milliseconds at which this entry will expire.

isExpired

public boolean isExpired()
Return true if this entry is expired.

Returns:
true if this entry is expired otherwise false.

JXSE