Packages

t

scalax.collection

NonEmptyOps

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
Linear Supertypes
ShorteningEitherOps[A, CC, SCC], ShorteningOps[A, CC, SCC], LengtheningOps[A, CC], UnchangedSizeOps[A, CC], AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NonEmptyOps
  2. ShorteningEitherOps
  3. ShorteningOps
  4. LengtheningOps
  5. UnchangedSizeOps
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def appended[B >: A](elem: B): CC[B]

    Creates a new collection with the elements of this collection and elem appended.

    Creates a new collection with the elements of this collection and elem appended.

    Definition Classes
    LengtheningOps
  2. abstract def apply(index: Int): A

    The element at index starting with 0 looked up in a non-safe way.

    The element at index starting with 0 looked up in a non-safe way.

    Definition Classes
    UnchangedSizeOps
    Exceptions thrown

    IndexOutOfBoundsException if index is negative or greater or equal to this collection's size.

  3. abstract def find(p: (A) => Boolean): Option[A]

    Finds an element satisfying the predicate p if any.

    Finds an element satisfying the predicate p if any.

    Definition Classes
    UnchangedSizeOps
  4. abstract def forall(p: (A) => Boolean): Boolean

    Whether all elements satisfy the predicate p.

    Whether all elements satisfy the predicate p.

    Definition Classes
    UnchangedSizeOps
  5. abstract def foreach[U](f: (A) => U): Unit

    Calls f on all elements of this collection for side effects.

    Calls f on all elements of this collection for side effects.

    Definition Classes
    UnchangedSizeOps
  6. abstract def head: A

    The first element.

    The first element.

    Definition Classes
    UnchangedSizeOps
  7. abstract def isDefinedAt(index: Int): Boolean

    Whether an element at index exists.

    Whether an element at index exists.

    Definition Classes
    UnchangedSizeOps
  8. abstract def iterator: Iterator[A]
    Definition Classes
    UnchangedSizeOps
  9. 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
  10. abstract def newConditionalBuilder[B]: Conditional[B, CC, SCC]
    Attributes
    protected
    Definition Classes
    ShorteningEitherOps
  11. abstract def newEscapingBuilder[B]: Escaping[B, SCC]
    Attributes
    protected
    Definition Classes
    ShorteningOps
  12. abstract def newUnsafeBuilder[B]: Unsafe[B, CC]
    Attributes
    protected
    Definition Classes
    UnchangedSizeOps
  13. abstract def prepended[B >: A](elem: B): CC[B]

    Creates a new collection with elem as its first element followed by the elements of this collection.

    Creates a new collection with elem as its first element followed by the elements of this collection.

    Definition Classes
    LengtheningOps
  14. abstract def size: Int

    The number of elements in this collection.

    The number of elements in this collection.

    Definition Classes
    UnchangedSizeOps

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. 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
  4. final def ++[B >: A](that: NonEmpty[B]): CC[B]

    Alias for concat

    Alias for concat

    Definition Classes
    LengtheningOps
  5. final def ++[B >: A](that: IterableOnce[B]): CC[B]

    Alias for concat

    Alias for concat

    Definition Classes
    LengtheningOps
  6. final def ++:[B >: A](prefix: NonEmpty[B]): CC[B]

    Alias for prependedAll

    Alias for prependedAll

    Definition Classes
    LengtheningOps
  7. final def ++:[B >: A](prefix: IterableOnce[B]): CC[B]

    Alias for prependedAll

    Alias for prependedAll

    Definition Classes
    LengtheningOps
  8. final def +:[B >: A](elem: B): CC[B]

    Alias for prepended

    Alias for prepended

    Definition Classes
    LengtheningOps
  9. 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()
  10. final def :+[B >: A](elem: B): CC[B]

    Alias for appended

    Alias for appended

    Definition Classes
    LengtheningOps
  11. final def :++[B >: A](suffix: NonEmpty[B]): CC[B]

    Alias for appendedAll

    Alias for appendedAll

    Definition Classes
    LengtheningOps
  12. final def :++[B >: A](suffix: IterableOnce[B]): CC[B]

    Alias for appendedAll

    Alias for appendedAll

    Definition Classes
    LengtheningOps
  13. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def appendedAll[B >: A](suffix: NonEmpty[B]): CC[B]
    Definition Classes
    LengtheningOps
  15. final def appendedAll[B >: A](suffix: IterableOnce[B]): CC[B]
    Definition Classes
    LengtheningOps
  16. def apply[B >: A](index: Int, more: Iterable[B], start: Int): B
    Attributes
    protected
    Definition Classes
    UnchangedSizeOps
  17. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  19. final def collect[B](pf: PartialFunction[A, B]): SCC[B]

    Creates a List with all elements of this collection that satisfy pf

    Creates a List with all elements of this collection that satisfy pf

    Definition Classes
    ShorteningOps
  20. def collectEither[B](pf: PartialFunction[A, B]): Either[SCC[B], CC[B]]

    Same as collect but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Same as collect but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Definition Classes
    ShorteningEitherOps
  21. def concat[B >: A](suffix: IterableOnce[B]): CC[B]

    Concatenates the elements of this collection and those of suffix into a new collection.

    Concatenates the elements of this collection and those of suffix into a new collection.

    Definition Classes
    LengtheningOps
  22. def contains[B >: A](elem: B): Boolean

    Whether elem is included in this collection.

    Whether elem is included in this collection.

    Definition Classes
    UnchangedSizeOps
  23. 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
  24. 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
  25. 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
  26. 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
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def exists(p: (A) => Boolean): Boolean

    Whether an element satisfying the predicate p exists.

    Whether an element satisfying the predicate p exists.

    Definition Classes
    UnchangedSizeOps
  30. final def filter(p: (A) => Boolean): SCC[A]

    Creates a List with all elements of this collection that satisfy the predicate p

    Creates a List with all elements of this collection that satisfy the predicate p

    Definition Classes
    ShorteningOps
  31. def filterEither(p: (A) => Boolean): Either[SCC[A], CC[A]]

    Same as filter but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Same as filter but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Definition Classes
    ShorteningEitherOps
  32. final def filterNot(p: (A) => Boolean): SCC[A]

    Creates a List with all elements of this collection that don't satisfy the predicate p

    Creates a List with all elements of this collection that don't satisfy the predicate p

    Definition Classes
    ShorteningOps
  33. def filterNotEither(p: (A) => Boolean): Either[SCC[A], CC[A]]

    Same as filterNot but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Same as filterNot but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Definition Classes
    ShorteningEitherOps
  34. final def flatMap[B](f: (A) => IterableOnce[B]): SCC[B]

    Creates a List by applying f to all elements of this collection and using the elements of every result.

    Creates a List by applying f to all elements of this collection and using the elements of every result.

    Definition Classes
    ShorteningOps
  35. final def flatMapEither[B](f: (A) => IterableOnce[B]): Either[SCC[B], CC[B]]

    Same as flatMap but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Same as flatMap but creates a collection of the same type and returns it in a Right unless the number of remaining elements is too small in which case it escapes to a Left[List].

    Definition Classes
    ShorteningEitherOps
  36. def foldLeft[B](zero: B)(f: (B, A) => B): B

    Applies f to a start value and all elements of this collection, going left to right.

    Applies f to a start value and all elements of this collection, going left to right.

    Definition Classes
    UnchangedSizeOps
  37. def get(index: Int): Option[A]

    Gets the element at index if any.

    Gets the element at index if any.

    Definition Classes
    UnchangedSizeOps
  38. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  39. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  41. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  44. final def prependedAll[B >: A](prefix: NonEmpty[B]): CC[B]
    Definition Classes
    LengtheningOps
  45. final def prependedAll[B >: A](prefix: IterableOnce[B]): CC[B]
    Definition Classes
    LengtheningOps
  46. def reduceLeft[B >: A](f: (B, A) => B): B

    Applies f to all elements of this collection, going left to right.

    Applies f to all elements of this collection, going left to right.

    Definition Classes
    UnchangedSizeOps
  47. final def reverse: CC[A]
    Definition Classes
    UnchangedSizeOps
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. final def toList: List[A]
    Definition Classes
    UnchangedSizeOps
  50. def toString(): String
    Definition Classes
    AnyRef → Any
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def zip[B](that: NonEmpty[B]): CC[(A, B)]
    Definition Classes
    UnchangedSizeOps
  55. final def zip[B](that: IterableOnce[B]): CC[(A, B)]
    Definition Classes
    UnchangedSizeOps
  56. final def zipWithIndex: CC[(A, Int)]
    Definition Classes
    UnchangedSizeOps

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. 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 of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. 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.

Inherited from ShorteningEitherOps[A, CC, SCC]

Inherited from ShorteningOps[A, CC, SCC]

Inherited from LengtheningOps[A, CC]

Inherited from UnchangedSizeOps[A, CC]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromNonEmptyOps[A, CC, SCC] to any2stringadd[NonEmptyOps[A, CC, SCC]]

Inherited by implicit conversion StringFormat fromNonEmptyOps[A, CC, SCC] to StringFormat[NonEmptyOps[A, CC, SCC]]

Inherited by implicit conversion Ensuring fromNonEmptyOps[A, CC, SCC] to Ensuring[NonEmptyOps[A, CC, SCC]]

Inherited by implicit conversion ArrowAssoc fromNonEmptyOps[A, CC, SCC] to ArrowAssoc[NonEmptyOps[A, CC, SCC]]

Ungrouped