Package io.determann.shadow.api.shadow
Interface Intersection
- All Superinterfaces:
ApiHolder,MirrorBacked<IntersectionType>,Shadow<IntersectionType>
- All Known Implementing Classes:
IntersectionImpl
T extends Collection & Serializable>-
Method Summary
Methods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, getTypeKind, isTypeKind, representsSameType
-
Method Details
-
asArray
Array asArray()Collection & Serializable->Collection & Serializable[] -
erasure
Shadow<TypeMirror> erasure()Information regarding generics is lost after the compilation. For ExampleList<String>becomesList. This method Does the same. This can be useful if you want to check if a shadow implements for exampleCollectionshadowToTest.erasure().isSubtypeOf(shadowApi.getDeclaredOrThrow("java.util.Collection").erasure())The erasure of an IntersectionType is its first bound type public class IntersectionExample<T extends Collection & Serializable>{} -> Collection public class IntersectionExample<T extends Serializable & Collection>{} -> Serializable -
equals
be careful using this equals- Specified by:
equalsin interfaceShadow<IntersectionType>- Overrides:
equalsin classObject- See Also:
-
getBounds
List<Shadow<TypeMirror>> getBounds()T extendsCollection & Serializable>
-