Object

zio.prelude.newtypes

Natural

Related Doc: package newtypes

Permalink

object Natural extends prelude.SubtypeSmart[Int]

Linear Supertypes
prelude.SubtypeSmart[Int], NewtypeModule.SubtypeSmart[Int], NewtypeModule.NewtypeSmart[Int], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Natural
  2. SubtypeSmart
  3. SubtypeSmart
  4. NewtypeSmart
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. trait Tag extends Any

    Permalink
    Definition Classes
    SubtypeSmart
  2. type Type = NewtypeModule.SubtypeSmart.Type with Tag

    Permalink
    Definition Classes
    SubtypeSmart → SubtypeSmart → NewtypeSmart

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. def apply(value: Int): Type

    Permalink

    Converts an instance of the underlying type to an instance of the newtype.

    Converts an instance of the underlying type to an instance of the newtype.

    Attributes
    protected
    Definition Classes
    NewtypeSmart
  5. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  13. def make(value: Int): Validation[String, Type]

    Permalink

    Attempts to convert an instance of the underlying type to an instance of the newtype, returning a Validation containing either a valid instance of the newtype or a string message describing why the instance was invalid.

    Attempts to convert an instance of the underlying type to an instance of the newtype, returning a Validation containing either a valid instance of the newtype or a string message describing why the instance was invalid.

    Definition Classes
    NewtypeSmart
  14. def makeAll[F[+_]](value: F[Int])(implicit arg0: ForEach[F]): Validation[String, F[Type]]

    Permalink

    Attempts to convert a collection of instances of the underlying type to a collection of instances of the newtype, returning a Validation containing either a collection of valid instances of the newtype or an accumulation of validation errors.

    Attempts to convert a collection of instances of the underlying type to a collection of instances of the newtype, returning a Validation containing either a collection of valid instances of the newtype or an accumulation of validation errors.

    Definition Classes
    SubtypeSmart → NewtypeSmart
  15. def minus(x: Natural, y: Natural): Natural

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val one: Natural

    Permalink
  20. def plus(x: Natural, y: Natural): Natural

    Permalink
  21. val subtype: NewtypeModule.SubtypeSmart[Int]

    Permalink
    Definition Classes
    SubtypeSmart
  22. def successor(n: Natural): Natural

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def times(x: Natural, y: Natural): Natural

    Permalink
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def unapply(value: Type): Some[Int]

    Permalink

    Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

    Allows pattern matching on newtype instances to convert them back to instances of the underlying type.

    Definition Classes
    NewtypeSmart
  27. def unwrap(value: Type): Int

    Permalink

    Converts an instance of the newtype back to an instance of the underlying type.

    Converts an instance of the newtype back to an instance of the underlying type.

    Definition Classes
    NewtypeSmart
  28. def unwrapAll[F[_]](value: F[Type]): F[Int]

    Permalink

    Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type.

    Converts an instance of a type parameterized on the newtype back to an instance of a type parameterized on the underlying type. For example, this could be used to convert a list of instances of the newtype back to a list of instances of the underlying type.

    Definition Classes
    SubtypeSmart → NewtypeSmart
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def wrap(value: Int): Type

    Permalink

    Converts an instance of the underlying type to an instance of the newtype.

    Converts an instance of the underlying type to an instance of the newtype.

    Attributes
    protected
    Definition Classes
    NewtypeSmart
  33. def wrapAll[F[_]](value: F[Int]): F[Type]

    Permalink

    Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype.

    Converts an instance of a type parameterized on the underlying type to an instance of a type parameterized on the newtype. For example, this could be used to convert a list of instances of the underlying type to a list of instances of the newtype.

    Attributes
    protected
    Definition Classes
    SubtypeSmart → NewtypeSmart
  34. val zero: Natural

    Permalink

Inherited from prelude.SubtypeSmart[Int]

Inherited from NewtypeModule.SubtypeSmart[Int]

Inherited from NewtypeModule.NewtypeSmart[Int]

Inherited from AnyRef

Inherited from Any

Ungrouped