Class

olon.common

SimpleVector

Related Doc: package common

Permalink

final case class SimpleVector[T](underlying: Vector[T]) extends List[T] with Product with Serializable

An immutable vector that uses the Scala Vector class as backing store, but is Java-friendly as a java.util.List. Note however that since it is immutable, you have to capture the results of addition/removal operations.

The typical mutating methods like add, set, clear, and remove are all unsupported, as are mutating methods on its iterators, since this collection is immutable.

See also

"Scala's Collection Library overview" section on Vectors for more information.

Linear Supertypes
Serializable, Serializable, Product, Equals, List[T], Collection[T], Iterable[T], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleVector
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. List
  7. Collection
  8. Iterable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleVector(jl: List[T])

    Permalink
  2. new SimpleVector()

    Permalink

    Construct an empty vector.

  3. new SimpleVector(underlying: Vector[T])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def add(after: Int, x: T): Unit

    Permalink
    Definition Classes
    SimpleVector → List
  5. def add(x: T): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  6. def addAll(index: Int, jc: Collection[_ <: T]): Boolean

    Permalink
    Definition Classes
    SimpleVector → List
  7. def addAll(jc: Collection[_ <: T]): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  8. def append(item: T): SimpleVector[T]

    Permalink

    Append an item to this vector.

    Append an item to this vector. This operation is effectively O(1) and returns the updated vector.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clear(): Unit

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  12. def contains(obj: AnyRef): Boolean

    Permalink

    Returns true if this vector contains the given obj.

    Returns true if this vector contains the given obj.

    Definition Classes
    SimpleVector → List → Collection
  13. def containsAll(jc: Collection[_]): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  14. def drop(n: Int): SimpleVector[T]

    Permalink
  15. def dropRight(n: Int): SimpleVector[T]

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def forEach(arg0: Consumer[_ >: T]): Unit

    Permalink
    Definition Classes
    Iterable
  18. def get(pos: Int): T

    Permalink
    Definition Classes
    SimpleVector → List
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  20. def head(): T

    Permalink
  21. def headOption(): Option[T]

    Permalink
  22. def indexOf(obj: AnyRef): Int

    Permalink
    Definition Classes
    SimpleVector → List
  23. def isEmpty(): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def iterator(): Iterator[T]

    Permalink
    Definition Classes
    SimpleVector → List → Collection → Iterable
  26. def lastIndexOf(obj: AnyRef): Int

    Permalink
    Definition Classes
    SimpleVector → List
  27. def listIterator(pos: Int): ListIterator[T]

    Permalink
    Definition Classes
    SimpleVector → List
  28. def listIterator(): ListIterator[T]

    Permalink
    Definition Classes
    SimpleVector → List
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  32. def parallelStream(): Stream[T]

    Permalink
    Definition Classes
    Collection
  33. def prepend(item: T): SimpleVector[T]

    Permalink

    Prepends an item to this vector.

    Prepends an item to this vector. This operation is effectively O(1) and returns the updated vector.

  34. def remove(obj: AnyRef): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  35. def remove(pos: Int): T

    Permalink
    Definition Classes
    SimpleVector → List
  36. def removeAll(jc: Collection[_]): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  37. def removeIf(arg0: Predicate[_ >: T]): Boolean

    Permalink
    Definition Classes
    Collection
  38. def replaceAll(arg0: UnaryOperator[T]): Unit

    Permalink
    Definition Classes
    List
  39. def retainAll(jc: Collection[_]): Boolean

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  40. def reverse(): SimpleVector[T]

    Permalink
  41. def set(after: Int, x: T): T

    Permalink
    Definition Classes
    SimpleVector → List
  42. def size(): Int

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  43. def sort(arg0: Comparator[_ >: T]): Unit

    Permalink
    Definition Classes
    List
  44. def spliterator(): Spliterator[T]

    Permalink
    Definition Classes
    List → Collection → Iterable
  45. def stream(): Stream[T]

    Permalink
    Definition Classes
    Collection
  46. def subList(from: Int, to: Int): List[T]

    Permalink
    Definition Classes
    SimpleVector → List
  47. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  48. def tail(): SimpleVector[T]

    Permalink
  49. def take(n: Int): SimpleVector[T]

    Permalink
  50. def takeRight(n: Int): SimpleVector[T]

    Permalink
  51. def toArray[X](in: Array[X]): Array[X]

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  52. def toArray(): Array[AnyRef]

    Permalink
    Definition Classes
    SimpleVector → List → Collection
  53. def toArray[T](arg0: IntFunction[Array[T]]): Array[T]

    Permalink
    Definition Classes
    Collection
  54. val underlying: Vector[T]

    Permalink
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from List[T]

Inherited from Collection[T]

Inherited from Iterable[T]

Inherited from AnyRef

Inherited from Any

Ungrouped