NEString

izumi.fundamentals.collections.nonempty.NEString
See theNEString companion class
object NEString

Companion object for class NEString.

Attributes

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

Members list

Value members

Concrete methods

def apply(firstChar: Char, otherChars: Char*): NEString

Constructs a new NEString given at least one character.

Constructs a new NEString given at least one character.

Value parameters

firstChar

the first character (with index 0) contained in this NEString

otherChars

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

Attributes

def from[T](seq: Seq[Char]): Option[NEString]

Optionally construct a NEString containing the characters, if any, of a given Seq.

Optionally construct a NEString containing the characters, if any, of a given Seq.

Value parameters

seq

the Seq of Char with which to construct a NEString

Attributes

Returns

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

def from[T](str: String): Option[NEString]
def unapplySeq(NEString: NEString): Some[Seq[String]]

Variable argument extractor for NEStrings.

Variable argument extractor for NEStrings.

Value parameters

NEString:

the NEString containing the elements to extract

Attributes

Returns

an Seq containing this NEStrings elements, wrapped in a Some

def unsafeFrom(str: String): NEString

Implicits

Implicits

implicit def asIterable(ne: NEString): Iterable[Char]