Class MapEntry

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

public class MapEntry extends Object
Understands an entry in a Map.
Author:
Yvonne Wang
  • Field Details

    • key

      public final Object key
    • value

      public final Object value
  • Method Details

    • 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