LoneElementJavaMapWrapper
org.scalatest.LoneElement.LoneElementJavaMapWrapper
final class LoneElementJavaMapWrapper[K, V, JMAP <: (Map)](jmap: JMAP[K, V], collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position)
Wrapper class that adds a loneElement method to Java Map for which an implicit Collecting[org.scalatest.Entry, java.util.Map] is available.
Through the implicit conversion provided by trait LoneElement, this class allows you to make statements like:
jmap.loneElement.getKey should be > 9
Type parameters
- JMAP
-
the "Java Map type constructor" for the collection on which to add the
loneElementmethod - K
-
the element type of the Java Map key on which to add the
loneElementmethod - V
-
the element type of the Java Map value on which to add the
loneElementmethod
Value parameters
- collecting
-
a typeclass that enables the
loneElementsyntax
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article