trait CaseMethods extends Product
Implements common case class & case object methods normally synthesized by the compiler. Extending this trait by
case class or case object prevents the compiler from synthesizing these methods which can reduce generated JS size
at penalty of not-exactly-precise implementation of canEqual
and equals
and its runtime performance.
For this reason, non-abstract classes extending this trait should always be final.
If possible, prefer using AbstractCase rather than this trait.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- CaseMethods
- Product
- Equals
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- CaseMethods → Equals
-
def
equals(obj: Any): Boolean
- Definition Classes
- CaseMethods → Equals → Any
-
def
hashCode(): Int
- Definition Classes
- CaseMethods → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
productIterator: Iterator[Any]
- Definition Classes
- CaseMethods → Product
-
def
productPrefix: String
- Definition Classes
- Product
-
def
toString(): String
- Definition Classes
- CaseMethods → Any