scalax.control

class ConcurrentLinkedList

[source: scalax/control/ConcurrentLinkedList.scala]

class ConcurrentLinkedList[A]
extends scala.Seq[A]
A thread-safe linked list implementation in which all operations except '-=' are unsynchronized.
Method Summary
def += (elem : A) : Unit
Appends an element. Appended elements are guaranteed to appear in the list eventually, in the order that they were added, but an iteration immediately following an append is not guaranteed to return the new element yet.
def -= (elem : A) : Unit
Deletes the first matching node. This is safe w.r.t. concurrent appends and iterations, but is synchronized to protect it from itself.
def apply (n : Int) : A
def clear : Unit
def elements : scala.Iterator[A]
def length : Int
This operation is not generally useful, because there is never any guarantee that the result is current.
Methods inherited from scala.Seq
scala.Seq.lengthCompare, scala.Seq.size, scala.Seq.isEmpty, scala.Seq.concat, scala.Seq.last, scala.Seq.lastOption, scala.Seq.first, scala.Seq.firstOption, scala.Seq.headOption, scala.Seq.++, scala.Seq.isDefinedAt, scala.Seq.lastIndexOf, scala.Seq.findIndexOf, scala.Seq.indexOf, scala.Seq.map, scala.Seq.flatMap, scala.Seq.filter, scala.Seq.take, scala.Seq.drop, scala.Seq.slice, scala.Seq.slice, scala.Seq.takeWhile, scala.Seq.dropWhile, scala.Seq.reverse, scala.Seq.contains, scala.Seq.subseq, scala.Seq.toArray, scala.Seq.toSeq, scala.Seq.projection, scala.Seq.equalsWith, scala.Seq.startsWith, scala.Seq.startsWith, scala.Seq.endsWith, scala.Seq.indexOf, scala.Seq.containsSlice
Methods inherited from scala.Collection
scala.Collection.toString, scala.Collection.stringPrefix
Methods inherited from scala.Iterable
scala.Iterable.partition, scala.Iterable.foreach, scala.Iterable.forall, scala.Iterable.exists, scala.Iterable.find, scala.Iterable.foldLeft, scala.Iterable.foldRight, scala.Iterable./:, scala.Iterable.:\, scala.Iterable.reduceLeft, scala.Iterable.reduceRight, scala.Iterable.copyToBuffer, scala.Iterable.sameElements, scala.Iterable.toList, scala.Iterable.toStream, scala.Iterable.mkString, scala.Iterable.mkString, scala.Iterable.mkString, scala.Iterable.addString, scala.Iterable.addString, scala.Iterable.addString, scala.Iterable.copyToArray, scala.Iterable.hasDefiniteSize
Methods inherited from scala.PartialFunction
scala.PartialFunction.orElse, scala.PartialFunction.andThen
Methods inherited from scala.Function1
scala.Function1.compose
Methods inherited from AnyRef
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def elements : scala.Iterator[A]

def +=(elem : A) : Unit
Appends an element. Appended elements are guaranteed to appear in the list eventually, in the order that they were added, but an iteration immediately following an append is not guaranteed to return the new element yet.

def length : Int
This operation is not generally useful, because there is never any guarantee that the result is current.
Overrides
scala.Seq.scala.Seq.length

def apply(n : Int) : A

def -=(elem : A) : Unit
Deletes the first matching node. This is safe w.r.t. concurrent appends and iterations, but is synchronized to protect it from itself.

def clear : Unit


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.