sealed abstract class NonEmptyColl extends AnyRef
The visible interface of NonEmpty; use that value to access these members.
- Alphabetic
- By Inheritance
- NonEmptyColl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract type NonEmpty[+A]
Use its alias com.daml.scalautil.nonempty.NonEmpty.
- abstract type NonEmptyF[F[_], A] <: NonEmpty[F[A]]
Use its alias com.daml.scalautil.nonempty.NonEmptyF.
Abstract Value Members
- abstract def equiv[F[_], A]: ===[NonEmpty[F[A]], NonEmptyF[F, A]]
Usable proof that NonEmptyF is actually equivalent to its NonEmpty parent type, not a strict subtype.
- abstract def subtype[A]: <~<[NonEmpty[A], A]
Usable proof that NonEmpty is a subtype of its argument.
Usable proof that NonEmpty is a subtype of its argument. (We cannot put this in an upper-bound, because that would prevent us from adding implicit methods that replace the stdlib ones.)
- abstract def unapply[Self](self: Self with Iterable[_]): Option[NonEmpty[Self]]
In pattern matching, think of NonEmpty as a sub-case-class of every imm.Iterable; matching
case NonEmpty(ne)
adds the non-empty type tone
if the pattern matches.In pattern matching, think of NonEmpty as a sub-case-class of every imm.Iterable; matching
case NonEmpty(ne)
adds the non-empty type tone
if the pattern matches.You will get an unchecked warning if the selector is not statically of an immutable type. So scala.collection.Seq will not work.
The type-checker will not permit you to apply this to a value that already has the NonEmpty type, so don't worry about redundant checks here.
Concrete 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 apply[Fct, A, C <: Iterable[A]](into: Fct, hd: A, tl: A*)(implicit fct: (Fct) => Factory[A, C]): NonEmpty[C]
NonEmpty(List, 1, 2, 3) : NonEmpty[List[Int]] // with (1, 2, 3) as elements
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated