Cloneable

trait Cloneable[+C <: AnyRef] extends Cloneable

A trait for cloneable collections.

Type parameters:
C

Type of the collection, covariant and with reference types as upperbound.

Source:
Cloneable.scala
trait Cloneable
class Object
trait Matchable
class Any
class ArrayDeque[A]
class Queue[A]
class Stack[A]
trait MapOps[K, V, CC, C]
class TrieMap[K, V]
class AnyRefMap[K, V]
class HashMap[K, V]
class LinkedHashMap[K, V]
class ListMap[K, V]
class LongMap[V]
trait Map[K, V]
trait Map[K, V]
class AbstractMap[K, V]
class WithDefault[K, V]
class WithDefault[K, V]
class OpenHashMap[Key, Value]
class TreeMap[K, V]
trait MultiMap[K, V]
trait SeqMap[K, V]
trait SortedMap[K, V]
trait SortedMapOps[K, V, CC, C]
class PriorityQueue[A]
trait SeqOps[A, CC, C]
trait Buffer[A]
class ArrayBuffer[A]
class ListBuffer[A]
trait IndexedBuffer[A]
trait IndexedSeqOps[A, CC, C]
class ArraySeq[T]
class ofBoolean
class ofByte
class ofChar
class ofDouble
class ofFloat
class ofInt
class ofLong
class ofRef[T]
class ofShort
class ofUnit
trait IndexedSeq[T]
trait Seq[A]
class AbstractSeq[A]
class Accumulator[A, CC, C]
trait SetOps[A, CC, C]
class HashSet[A]
class LinkedHashSet[A]
trait Set[A]
class AbstractSet[A]
class BitSet
class TreeSet[A]
trait SortedSet[A]
trait SortedSetOps[A, CC, C]

Value members

Concrete methods

override def clone(): C

Create a copy of the receiver object.

Create a copy of the receiver object.

The default implementation of the clone method is platform dependent.

Returns:

a copy of the receiver object.

Note:

not specified by SLS as a member of AnyRef

Definition Classes
Source:
Cloneable.scala