final class LoneElementJavaMapWrapper[K, V, JMAP[_, _] <: Map[_, _]] extends AnyRef
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
- 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- JMAP
the "Java Map type constructor" for the collection on which to add the
loneElement
method
- Source
- LoneElement.scala
- Alphabetic
- By Inheritance
- LoneElementJavaMapWrapper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LoneElementJavaMapWrapper(jmap: JMAP[K, V], collecting: Collecting[Entry[K, V], JMAP[K, V]], prettifier: Prettifier, pos: Position)
- collecting
a typeclass that enables the
loneElement
syntax
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loneElement: Entry[K, V]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()