trait Creator[+T] extends Serializable

A constructor/factory, takes no parameters but creates a new value of type T every call. Supports throwing Exception in the apply, which the java.util.function.Creator counterpart does not.

Annotations
@nowarn() @SerialVersionUID() @FunctionalInterface()
Source
Function.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Creator
  2. Serializable
  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

Abstract Value Members

  1. abstract def create(): T

    This method must return a different instance upon every call.

    This method must return a different instance upon every call.

    Annotations
    @throws(classOf[Exception])