org.fest.assertions.data
Class MapEntry

java.lang.Object
  extended by org.fest.assertions.data.MapEntry

public class MapEntry
extends Object

Understands an entry in a Map.

Author:
Yvonne Wang

Field Summary
 Object key
          The key corresponding to this entry.
 Object value
          The value corresponding to this entry.
 
Method Summary
static MapEntry entry(Object key, Object value)
          Creates a new map entry.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public final Object key
The key corresponding to this entry.


value

public final Object value
The value corresponding to this entry.

Method Detail

entry

public static MapEntry entry(Object key,
                             Object value)
Creates a new map entry.

Parameters:
key - the key of the entry to create.
value - the value of the entry to create.
Returns:
the created map entry.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.