org.mattbusche.util.partition
Class Entry<M>

java.lang.Object
  extended by org.mattbusche.util.partition.Entry<M>

public class Entry<M>
extends java.lang.Object

An instance of Entry<M> is a simple data pair consisting of an integer ID and a user-provided member object of type M. An Entry's member may be null.

Version:
0.1
Author:
Matthew T. Busche

Method Summary
 int getId()
          Returns the Entry ID.
 M getMember()
          Returns the Entry member.
 void setMember(M member)
          Sets the Entry member.
 java.lang.String toString()
          Prints the Entry in the following format:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public int getId()
Returns the Entry ID.


getMember

public M getMember()
Returns the Entry member.


setMember

public void setMember(M member)
Sets the Entry member.


toString

public java.lang.String toString()

Prints the Entry in the following format:

       (id, member)
 

Overrides:
toString in class java.lang.Object