Trait

zio.prelude

NewtypeExports

Related Doc: package prelude

Permalink

trait NewtypeExports extends AnyRef

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NewtypeExports
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Newtype[A] extends NewtypeModule.Newtype[A]

    Permalink

    The class of objects corresponding to newtypes.

    The class of objects corresponding to newtypes. Users should implement an object that extends this class to create their own newtypes, specifying A as the underlying type to wrap.

    object Meter extends Newtype[Double]
    type Meter = Meter.Type
  2. abstract class NewtypeSmart[A] extends NewtypeModule.NewtypeSmart[A]

    Permalink

    The class of objects corresponding to newtypes with smart constructors where not all instances of the underlying type are valid instances of the newtype.

    The class of objects corresponding to newtypes with smart constructors where not all instances of the underlying type are valid instances of the newtype. Users should implement an object that extends this class to create their own newtypes, specifying A as the underlying type to wrap and an assertion that valid instances of the underlying type should satisfy.

    object Natural extends NewtypeSmart[Int](isGreaterThanEqualTo(0))
    type Natural = Natural.Type
  3. abstract class Subtype[A] extends NewtypeModule.Subtype[A]

    Permalink

    The class of objects corresponding to subtypes.

    The class of objects corresponding to subtypes. Users should implement an object that extends this class to create their own subtypes, specifying A as the underlying type to wrap.

    object And extends Subtype[Boolean]
    type And = And.Type
  4. abstract class SubtypeSmart[A] extends NewtypeModule.SubtypeSmart[A]

    Permalink

    The class of objects corresponding to subtypes with smart constructors where not all instances of the underlying type are valid instances of the subtype.

    The class of objects corresponding to subtypes with smart constructors where not all instances of the underlying type are valid instances of the subtype. Users should implement an object that extends this class to create their own subtypes, specifying A as the underlying type to wrap and an assertion that valid instances of the underlying type should satisfy.

    object Natural extends SubtypeSmart[Int](isGreaterThanEqualTo(0))
    type Natural = Natural.Type

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped