trait NonEmptyOps[+A, CC[+X] <: NonEmpty[X], SCC[+_] <: Iterable[_]] extends UnchangedSizeOps[A, CC] with LengtheningOps[A, CC] with ShorteningOps[A, CC, SCC] with ShorteningEitherOps[A, CC, SCC]
- Attributes
- protected
- Alphabetic
- By Inheritance
- NonEmptyOps
- ShorteningEitherOps
- ShorteningOps
- LengtheningOps
- UnchangedSizeOps
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def appended[B >: A](elem: B): CC[B]
Creates a new collection with the elements of this collection and
elemappended.Creates a new collection with the elements of this collection and
elemappended.- Definition Classes
- LengtheningOps
- abstract def apply(index: Int): A
The element at
indexstarting with 0 looked up in a non-safe way.The element at
indexstarting with 0 looked up in a non-safe way.- Definition Classes
- UnchangedSizeOps
- Exceptions thrown
IndexOutOfBoundsExceptionifindexis negative or greater or equal to this collection's size.
- abstract def find(p: (A) => Boolean): Option[A]
Finds an element satisfying the predicate
pif any.Finds an element satisfying the predicate
pif any.- Definition Classes
- UnchangedSizeOps
- abstract def forall(p: (A) => Boolean): Boolean
Whether all elements satisfy the predicate
p.Whether all elements satisfy the predicate
p.- Definition Classes
- UnchangedSizeOps
- abstract def foreach[U](f: (A) => U): Unit
Calls
fon all elements of this collection for side effects.Calls
fon all elements of this collection for side effects.- Definition Classes
- UnchangedSizeOps
- abstract def head: A
The first element.
The first element.
- Definition Classes
- UnchangedSizeOps
- abstract def isDefinedAt(index: Int): Boolean
Whether an element at
indexexists.Whether an element at
indexexists.- Definition Classes
- UnchangedSizeOps
- abstract def iterator: Iterator[A]
- Definition Classes
- UnchangedSizeOps
- abstract def map[B](f: (A) => B): CC[B]
Builds a new collection by applying a function to all elements of this collection.
Builds a new collection by applying a function to all elements of this collection.
- Definition Classes
- UnchangedSizeOps
- abstract def newConditionalBuilder[B]: Conditional[B, CC, SCC]
- Attributes
- protected
- Definition Classes
- ShorteningEitherOps
- abstract def newEscapingBuilder[B]: Escaping[B, SCC]
- Attributes
- protected
- Definition Classes
- ShorteningOps
- abstract def newUnsafeBuilder[B]: Unsafe[B, CC]
- Attributes
- protected
- Definition Classes
- UnchangedSizeOps
- abstract def prepended[B >: A](elem: B): CC[B]
Creates a new collection with
elemas its first element followed by the elements of this collection.Creates a new collection with
elemas its first element followed by the elements of this collection.- Definition Classes
- LengtheningOps
- abstract def size: Int
The number of elements in this collection.
The number of elements in this collection.
- Definition Classes
- UnchangedSizeOps
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toany2stringadd[NonEmptyOps[A, CC, SCC]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- final def ++[B >: A](that: NonEmpty[B]): CC[B]
Alias for
concatAlias for
concat- Definition Classes
- LengtheningOps
- final def ++[B >: A](that: IterableOnce[B]): CC[B]
Alias for
concatAlias for
concat- Definition Classes
- LengtheningOps
- final def ++:[B >: A](prefix: NonEmpty[B]): CC[B]
Alias for
prependedAllAlias for
prependedAll- Definition Classes
- LengtheningOps
- final def ++:[B >: A](prefix: IterableOnce[B]): CC[B]
Alias for
prependedAllAlias for
prependedAll- Definition Classes
- LengtheningOps
- final def +:[B >: A](elem: B): CC[B]
Alias for
prependedAlias for
prepended- Definition Classes
- LengtheningOps
- def ->[B](y: B): (NonEmptyOps[A, CC, SCC], B)
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toArrowAssoc[NonEmptyOps[A, CC, SCC]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def :+[B >: A](elem: B): CC[B]
Alias for
appendedAlias for
appended- Definition Classes
- LengtheningOps
- final def :++[B >: A](suffix: NonEmpty[B]): CC[B]
Alias for
appendedAllAlias for
appendedAll- Definition Classes
- LengtheningOps
- final def :++[B >: A](suffix: IterableOnce[B]): CC[B]
Alias for
appendedAllAlias for
appendedAll- Definition Classes
- LengtheningOps
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def appendedAll[B >: A](suffix: NonEmpty[B]): CC[B]
- Definition Classes
- LengtheningOps
- final def appendedAll[B >: A](suffix: IterableOnce[B]): CC[B]
- Definition Classes
- LengtheningOps
- def apply[B >: A](index: Int, more: Iterable[B], start: Int): B
- Attributes
- protected
- Definition Classes
- UnchangedSizeOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def collect[B](pf: PartialFunction[A, B]): SCC[B]
Creates a
Listwith all elements of this collection that satisfypfCreates a
Listwith all elements of this collection that satisfypf- Definition Classes
- ShorteningOps
- def collectEither[B](pf: PartialFunction[A, B]): Either[SCC[B], CC[B]]
Same as
collectbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].Same as
collectbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].- Definition Classes
- ShorteningEitherOps
- def concat[B >: A](suffix: IterableOnce[B]): CC[B]
Concatenates the elements of this collection and those of
suffixinto a new collection.Concatenates the elements of this collection and those of
suffixinto a new collection.- Definition Classes
- LengtheningOps
- def contains[B >: A](elem: B): Boolean
Whether
elemis included in this collection.Whether
elemis included in this collection.- Definition Classes
- UnchangedSizeOps
- def ensuring(cond: (NonEmptyOps[A, CC, SCC]) => Boolean, msg: => Any): NonEmptyOps[A, CC, SCC]
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toEnsuring[NonEmptyOps[A, CC, SCC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (NonEmptyOps[A, CC, SCC]) => Boolean): NonEmptyOps[A, CC, SCC]
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toEnsuring[NonEmptyOps[A, CC, SCC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): NonEmptyOps[A, CC, SCC]
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toEnsuring[NonEmptyOps[A, CC, SCC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): NonEmptyOps[A, CC, SCC]
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toEnsuring[NonEmptyOps[A, CC, SCC]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (A) => Boolean): Boolean
Whether an element satisfying the predicate
pexists.Whether an element satisfying the predicate
pexists.- Definition Classes
- UnchangedSizeOps
- final def filter(p: (A) => Boolean): SCC[A]
Creates a
Listwith all elements of this collection that satisfy the predicatepCreates a
Listwith all elements of this collection that satisfy the predicatep- Definition Classes
- ShorteningOps
- def filterEither(p: (A) => Boolean): Either[SCC[A], CC[A]]
Same as
filterbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].Same as
filterbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].- Definition Classes
- ShorteningEitherOps
- final def filterNot(p: (A) => Boolean): SCC[A]
Creates a
Listwith all elements of this collection that don't satisfy the predicatepCreates a
Listwith all elements of this collection that don't satisfy the predicatep- Definition Classes
- ShorteningOps
- def filterNotEither(p: (A) => Boolean): Either[SCC[A], CC[A]]
Same as
filterNotbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].Same as
filterNotbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].- Definition Classes
- ShorteningEitherOps
- final def flatMap[B](f: (A) => IterableOnce[B]): SCC[B]
Creates a
Listby applyingfto all elements of this collection and using the elements of every result.Creates a
Listby applyingfto all elements of this collection and using the elements of every result.- Definition Classes
- ShorteningOps
- final def flatMapEither[B](f: (A) => IterableOnce[B]): Either[SCC[B], CC[B]]
Same as
flatMapbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].Same as
flatMapbut creates a collection of the same type and returns it in aRightunless the number of remaining elements is too small in which case it escapes to aLeft[List].- Definition Classes
- ShorteningEitherOps
- def foldLeft[B](zero: B)(f: (B, A) => B): B
Applies
fto a start value and all elements of this collection, going left to right.Applies
fto a start value and all elements of this collection, going left to right.- Definition Classes
- UnchangedSizeOps
- def get(index: Int): Option[A]
Gets the element at
indexif any.Gets the element at
indexif any.- Definition Classes
- UnchangedSizeOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def prependedAll[B >: A](prefix: NonEmpty[B]): CC[B]
- Definition Classes
- LengtheningOps
- final def prependedAll[B >: A](prefix: IterableOnce[B]): CC[B]
- Definition Classes
- LengtheningOps
- def reduceLeft[B >: A](f: (B, A) => B): B
Applies
fto all elements of this collection, going left to right.Applies
fto all elements of this collection, going left to right.- Definition Classes
- UnchangedSizeOps
- final def reverse: CC[A]
- Definition Classes
- UnchangedSizeOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toList: List[A]
- Definition Classes
- UnchangedSizeOps
- 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])
- final def zip[B](that: NonEmpty[B]): CC[(A, B)]
- Definition Classes
- UnchangedSizeOps
- final def zip[B](that: IterableOnce[B]): CC[(A, B)]
- Definition Classes
- UnchangedSizeOps
- final def zipWithIndex: CC[(A, Int)]
- Definition Classes
- UnchangedSizeOps
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toStringFormat[NonEmptyOps[A, CC, SCC]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
- def →[B](y: B): (NonEmptyOps[A, CC, SCC], B)
- Implicit
- This member is added by an implicit conversion from NonEmptyOps[A, CC, SCC] toArrowAssoc[NonEmptyOps[A, CC, SCC]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
Welcome to the Graph for Scala API reference. Some suggested entry points:
AnyGraphimmutable.Graphand its inner nodesmutable.Graphand its inner nodes.edgespackage and its subpackageshyperedgespackage and its subpackages.labeled edgespackagemultilabeled edgespackagelabeled hyperedgespackagemultilabeled hyperedgespackageordered labeled hyperedgespackageordered multilabeled hyperedgesobjectgenericpackage.GraphTraversalandTraverserInnerNode.RandomGraph.GraphGen.