Packages

class OneToOne[S, T] extends (S) ⇒ T with Serializable

Represents a 1-to-1 relation by pairing a function mapFn with its inverse function inverseFn. If the function represented by this class is applied to a value for which inverseFn is not the inverse of mapFn, an exception is thrown.

Note that inverseFn can be called by the Data Processing Library on values that are not produced by mapFn. Define inverseFn as a partial function to correctly restrict its domain to the set of keys, for which an inverse can be defined.

S

The domain of the function.

T

The co-domain of the function.

Linear Supertypes
Serializable, Serializable, (S) ⇒ T, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OneToOne
  2. Serializable
  3. Serializable
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (T) ⇒ A): (S) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(arg: S): T

    Applies the function to a value.

    Applies the function to a value.

    inverseFn is evaluated every time this function is called.

    arg

    The value.

    returns

    The result of the function.

    Definition Classes
    OneToOne → Function1
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def compose[A](g: (A) ⇒ S): (A) ⇒ T
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. val inverseFn: PartialFunction[T, S]
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from (S) ⇒ T

Inherited from AnyRef

Inherited from Any

Ungrouped