A ClassManifest[T] is an opaque descriptor for type T. It is used by the compiler to preserve information necessary for instantiating Arrays in those cases where the element type is unknown at compile time.
The type-relation operators make an effort to present a more accurate picture than can be realized with erased types, but they should not be relied upon to give correct answers. In particular they are likely to be wrong when variance is involved or when a subtype has a different number of type arguments than a supertype.
Tests whether the type represented by this manifest is a subtype
of the type represented by that' manifest, subject to the limitations
described in the header.
Tests whether the type represented by this manifest is a subtype
of the type represented by that' manifest, subject to the limitations
described in the header.
Tests whether the type represented by this manifest is a supertype
of the type represented by that' manifest, subject to the limitations
described in the header.
Tests whether the type represented by this manifest is a supertype
of the type represented by that' manifest, subject to the limitations
described in the header.
A method that should be called from every well-designed equals method that is open to be overridden in a subclass.
A method that should be called from every well-designed equals method that is open to be overridden in a subclass. See Programming in Scala, Chapter 28 for discussion and design.
Tests whether the type represented by this manifest is equal to
the type represented by that' manifest, subject to the limitations
described in the header.
Tests whether the type represented by this manifest is equal to
the type represented by that' manifest, subject to the limitations
described in the header.
A class representing the type U to which T would be erased.
A class representing the type U to which T would be erased. Note that there is no subtyping relationship between T and U.
Returns a hash code value for the object.
Returns a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet
not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
.
However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have
identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure
to verify that the behavior is consistent with the equals
method.
the hash code value for the object.
A ClassManifest[T] is an opaque descriptor for type T. It is used by the compiler to preserve information necessary for instantiating Arrays in those cases where the element type is unknown at compile time.
The type-relation operators make an effort to present a more accurate picture than can be realized with erased types, but they should not be relied upon to give correct answers. In particular they are likely to be wrong when variance is involved or when a subtype has a different number of type arguments than a supertype.