gnu.inet.imap
Class Pair

java.lang.Object
  extended by gnu.inet.imap.Pair

public final class Pair
extends java.lang.Object

Implementation of a key-value pair. The key is always a String, and the value must be a List.

Author:
Chris Burdess

Method Summary
 java.lang.String getKey()
          Returns the key part of this pair.
 java.util.List getValue()
          Returns the value part of this pair.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public java.lang.String getKey()
Returns the key part of this pair.


getValue

public java.util.List getValue()
Returns the value part of this pair.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


© Copyright 2003 The Free Software Foundation, all rights reserved