sealed_annotations library

Sealed Annotations Library

Classes

Equatable
A base class to facilitate operator == and hashCode overrides.
EquatableConfig
The default configurion for all Equatable instances.
Sealed
annotate classes with @Sealed to generate sealed class code.
SealedManifest
used to target @Sealed manifest class which the code is generated for.
WithEquality
Override equality in generated classes.
WithName
Override generated sub class names.
WithPrefix
Override prefix in generated class names.
WithType
Override type of a field in a data class. The regular specified type has no effect so it's better not to specify it.

Enums

Equality
different equality (and hash code) implementations for generated data classes.

Mixins

EquatableMixin
A mixin that helps implement equality without needing to explicitly override operator == and hashCode.