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
loneElement
method- K
the element type of the Java Map key on which to add the
loneElement
method- V
the element type of the Java Map value on which to add the
loneElement
method
- Value parameters:
- collecting
a typeclass that enables the
loneElement
syntax
class Object
trait Matchable
class Any