NESet

izumi.fundamentals.collections.nonempty.NESet
See theNESet companion class
object NESet extends NESetInstances

Companion object for class NESet.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NESet.type

Members list

Type members

Classlikes

final implicit class OptionOps[A](option: Option[NESet[A]]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def apply[T](firstElement: T, otherElements: T*): NESet[T]

Constructs a new NESet given at least one element.

Constructs a new NESet given at least one element.

Type parameters

T

the type of the element contained in the new NESet

Value parameters

firstElement

the first element (with index 0) contained in this NESet

otherElements

a varargs of zero or more other elements (with index 1, 2, 3, ...) contained in this NESet

Attributes

def from[T](set: Set[T]): Option[NESet[T]]

Optionally construct a NESet containing the elements, if any, of a given Set.

Optionally construct a NESet containing the elements, if any, of a given Set.

Value parameters

set

the Set with which to construct a NESet

Attributes

Returns

a NESet containing the elements of the given GenSeq, if non-empty, wrapped in a Some; else None if the GenSeq is empty

def unapplySeq[T](NESet: NESet[T]): Some[Seq[T]]

Variable argument extractor for NESets.

Variable argument extractor for NESets.

Value parameters

NESet:

the NESet containing the elements to extract

Attributes

Returns

an Seq containing this NESets elements, wrapped in a Some

def unsafeFrom[T](set: Set[T]): NESet[T]

Implicits

Implicits

final implicit def OptionOps[A](option: Option[NESet[A]]): OptionOps[A]
implicit def asIterable[A](ne: NESet[A]): Iterable[A]

Inherited implicits

implicit def factoryNes[A]: Factory[A, NESet[A]]

Attributes

Inherited from:
NESetInstances