NonEmptyString

org.finos.morphir.ir.internal.types.NonEmptyString
object NonEmptyString extends SubtypeCustom[String]

Attributes

Graph
Supertypes
class SubtypeCustom[String]
class NewtypeCustom[String]
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited types

type Base <: String

Attributes

Inherited from:
SubtypeCustom
type Type

Attributes

Inherited from:
NewtypeCustom

Value members

Inherited methods

inline def apply(inline a1: String, inline a2: String, inline a3: String, inline a4: String, inline a5: String, inline a6: String): NonEmptyChunk[Type]

Attributes

Inherited from:
NewtypeCustom
inline def apply(inline a1: String, inline a2: String, inline a3: String, inline a4: String, inline a5: String): NonEmptyChunk[Type]

Attributes

Inherited from:
NewtypeCustom
inline def apply(inline a1: String, inline a2: String, inline a3: String, inline a4: String): NonEmptyChunk[Type]

Attributes

Inherited from:
NewtypeCustom
inline def apply(inline a1: String, inline a2: String, inline a3: String): NonEmptyChunk[Type]

Attributes

Inherited from:
NewtypeCustom
inline def apply(inline a1: String, inline a2: String): NonEmptyChunk[Type]

Attributes

Inherited from:
NewtypeCustom
inline def apply(inline a1: String): Type

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

Inherited from:
NewtypeCustom
def derive[TypeClass[_]](implicit instance: TypeClass[String]): TypeClass[Type]

Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.

Derives an instance of a type class for the new type given an instance of the type class for the underlying type. The caller is responsible for the type class being a valid instance for the new type.

Attributes

Inherited from:
NewtypeCustom
def make(value: String): Validation[String, Type]

Attributes

Inherited from:
NewtypeCustom
def makeAll[F[_] : ForEach](value: F[String]): Validation[String, F[Type]]

Attributes

Inherited from:
NewtypeCustom
def unapply(value: Type): Some[String]

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.

Attributes

Inherited from:
NewtypeCustom
def unwrap(value: Type): String

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.

Attributes

Inherited from:
NewtypeCustom
def unwrapAll[F[_]](value: F[Type]): F[String]

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.

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.

Attributes

Inherited from:
NewtypeCustom
def wrap(value: String): Type

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

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

Attributes

Inherited from:
NewtypeCustom
def wrapAll[F[_]](value: F[String]): F[Type]

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.

Attributes

Inherited from:
NewtypeCustom

Implicits

Inherited implicits

implicit def classTag(implicit underlying: ClassTag[String]): ClassTag[Type]

Attributes

Inherited from:
NewtypeCustom