scala.collection.jcl

class LinkedList

[source: scala/collection/jcl/LinkedList.scala]

class LinkedList[A](val override underlying : LinkedList)
extends BufferWrapper[A]
Creates a buffer backed by a Java linked list. Includes additional peek/poll/removeFirst/removeLast APIs that are useful in implementing queues and stacks.
Author
Sean McDirmid
Additional Constructor Summary
def this : LinkedList[A]
Method Summary
override def add (idx : Int, a : A) : Unit
Inserts "a" into this buffer just before the element at index "idx."
override def elements : BufferIterator[Int, A]
Creates a new iterator over all elements contained in this object.
Methods inherited from BufferWrapper
remove, add, addAll, indexOf, apply, set, rangeImpl, length
Methods inherited from Buffer
projection, first, last, compare, update, transform, +, -=, isEmpty
Methods inherited from Ranged
from, until, range
Methods inherited from Seq
size, concat, ++, isDefinedAt, lastIndexOf, map, flatMap, filter, take, drop, takeWhile, dropWhile, reverse, contains, slice, subseq, toArray
Methods inherited from PartialFunction
orElse, andThen
Methods inherited from Function1
toString, compose
Methods inherited from CollectionWrapper
underlying0, has, hasAll, addAll, hashCode, equals
Methods inherited from IterableWrapper
remove, removeAll, retainAll, clear
Methods inherited from Collection
++, +=
Methods inherited from MutableIterable
--, -, retain, size0
Methods inherited from Collection
stringPrefix
Methods inherited from Iterable
foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this : LinkedList[A]

Method Details
override def elements : BufferIterator[Int, A]
Creates a new iterator over all elements contained in this object.
Returns
the new iterator
Overrides
BufferWrapper.elements

override def add(idx : Int, a : A) : Unit
Inserts "a" into this buffer just before the element at index "idx."
Overrides
BufferWrapper.add