Packages

trait Cloneable[+C <: AnyRef] extends scala.Cloneable

A trait for cloneable collections.

C

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

Source
Cloneable.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cloneable
  2. Cloneable
  3. AnyRef
  4. 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

Value Members

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

    Definition Classes
    Cloneable → AnyRef
    Note

    not specified by SLS as a member of AnyRef