org.assertj.core.data
Class MapEntry

java.lang.Object
  extended by org.assertj.core.data.MapEntry

public class MapEntry
extends Object

Understands an entry in a Map.

Author:
Yvonne Wang

Field Summary
 Object key
           
 Object value
           
 
Method Summary
static MapEntry entry(Object key, Object value)
          Creates a new MapEntry.
 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

value

public final Object value
Method Detail

entry

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

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

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 © 2013–2015 AssertJ. All rights reserved.