JavaEnumSchemaFor

com.sksamuel.avro4s.schemas.JavaEnumSchemaFor
class JavaEnumSchemaFor[T <: Enum[_]](tag: ClassTag[T]) extends SchemaFor[T]

Attributes

Graph
Supertypes
trait SchemaFor[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def schema: Schema

Returns the avro Schema generated by this typeclass, applying the given FieldMapper to each field of record types.

Returns the avro Schema generated by this typeclass, applying the given FieldMapper to each field of record types.

Attributes

Definition Classes

Inherited methods

final def forType[U]: SchemaFor[U]

Changes the type of this SchemaFor to the desired type U without any other modifications.

Changes the type of this SchemaFor to the desired type U without any other modifications.

Type parameters

U

new type for SchemaFor.

Attributes

Inherited from:
SchemaFor
final def map[U](fn: Schema => Schema): SchemaFor[U]

Creates a SchemaFor[U] by applying a function Schema => Schema to the schema generated by this instance.

Creates a SchemaFor[U] by applying a function Schema => Schema to the schema generated by this instance.

Attributes

Inherited from:
SchemaFor
final def withFieldMapper(mapper: FieldMapper): SchemaFor[T]

Applies a FieldMapper to this typeclass, so that the returned schema has any fields transformed by the mapper.

Applies a FieldMapper to this typeclass, so that the returned schema has any fields transformed by the mapper.

Attributes

Inherited from:
SchemaFor

Concrete fields

val maybeEnumDefault: Option[String]
val maybeName: Option[String]
val maybeNamespace: Option[String]
val name: String
val namespace: String
val props: Array[(String, String)]
val symbols: Array[String]