Package org.assertj.core.data
Class MapEntry<K,V>
java.lang.Object
org.assertj.core.data.MapEntry<K,V>
- Type Parameters:
K
- the type of the key of this entry.V
- the type of the value of this entry.
- All Implemented Interfaces:
Map.Entry<K,
V>
Understands an entry in a
Map
.- Author:
- Yvonne Wang
-
Field Details
-
key
-
value
-
-
Method Details
-
entry
Creates a newMapEntry
.- Type Parameters:
K
- the type of the key of this entry.V
- the type of the value of this entry.- Parameters:
key
- the key of the entry to create.value
- the value of the entry to create.- Returns:
- the created
MapEntry
.
-
equals
-
hashCode
public int hashCode() -
toString
-
getKey
-
getValue
-
setValue
Always throwsUnsupportedOperationException
as this class represents an immutable map entry.- Specified by:
setValue
in interfaceMap.Entry<K,
V> - Parameters:
value
- ignored- Returns:
- (Does not return)
- Throws:
UnsupportedOperationException
- always
-