Package io.determann.shadow.impl.shadow
Class WildcardImpl
java.lang.Object
io.determann.shadow.impl.shadow.ShadowImpl<WildcardType>
io.determann.shadow.impl.shadow.WildcardImpl
- All Implemented Interfaces:
ApiHolder,MirrorBacked<WildcardType>,Shadow<WildcardType>,Wildcard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(Shadow<? extends TypeMirror> shadow) shadowApi.getClassOrThrow("java.lang.Number") .asExtendsWildcard() .contains(shadowApi.getDeclaredOrThrow("java.lang.Long"));booleanbe careful using this equalserasure()Information regarding generics is lost after the compilation.List<?getSuper()List<?inthashCode()Methods inherited from class io.determann.shadow.impl.shadow.ShadowImpl
getApi, getMirror, isTypeKind, representsSameType, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.determann.shadow.api.shadow.Shadow
getApi, getMirror, isTypeKind, representsSameType
-
Constructor Details
-
WildcardImpl
-
-
Method Details
-
getTypeKind
- Specified by:
getTypeKindin interfaceShadow<WildcardType>
-
getExtends
Description copied from interface:WildcardList<? extends Number>- Specified by:
getExtendsin interfaceWildcard
-
getSuper
Description copied from interface:WildcardList<? super Number> -
erasure
Description copied from interface:WildcardInformation 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())for
Wildcards this means for example? extends java.lang.Number->java.lang.Number -
contains
Description copied from interface:WildcardshadowApi.getClassOrThrow("java.lang.Number") .asExtendsWildcard() .contains(shadowApi.getDeclaredOrThrow("java.lang.Long")); -
hashCode
public int hashCode() -
equals
Description copied from interface:Wildcardbe careful using this equals
-