Tests whether the type represented by this manifest is a subtype of
the type represented by that' manifest
Tests whether the type represented by this manifest is a subtype of
the type represented by that' manifest. BE AWARE: the current
implementation is an approximation, as the test is done on the
erasure of the type.
Tests whether the type represented by this manifest is a supertype
of the type represented by that' manifest
Tests whether the type represented by this manifest is a supertype
of the type represented by that' manifest. BE AWARE: the current
implementation is an approximation, as the test is done on the
erasure of the type.
Tests whether the type represented by this manifest is equal to the
type represented by that' manifest
Tests whether the type represented by this manifest is equal to the
type represented by that' manifest. BE AWARE: the current
implementation is an approximation, as the test is done on the
erasure of the type. @return
true
if the receiver object is equivalent to the argument; false
otherwise.
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.
Returns a string representation of the object
Returns a string representation of the object.
The default representation is platform dependent.
A
ClassManifest[T]
is an opaque descriptor for typeT
. Currently, its only use is to give access to the erasure of the type as aClass
instance.BE AWARE: The different type-relation operators are all forwarded to the erased type as an approximation of the final semantics where these operators should be on the unerased type.