Package io.determann.shadow.impl.shadow
Class IntersectionImpl
java.lang.Object
io.determann.shadow.impl.shadow.ShadowImpl<IntersectionType>
io.determann.shadow.impl.shadow.IntersectionImpl
- All Implemented Interfaces:
ApiHolder,MirrorBacked<IntersectionType>,Intersection,Shadow<IntersectionType>
-
Constructor Summary
Constructors -
Method Summary
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
-
IntersectionImpl
-
-
Method Details
-
getTypeKind
- Specified by:
getTypeKindin interfaceShadow<IntersectionType>
-
getBounds
Description copied from interface:IntersectionT extendsCollection & Serializable>- Specified by:
getBoundsin interfaceIntersection
-
asArray
Description copied from interface:IntersectionCollection & Serializable->Collection & Serializable[]- Specified by:
asArrayin interfaceIntersection
-
erasure
Description copied from interface:IntersectionInformation 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- Specified by:
erasurein interfaceIntersection
-
hashCode
public int hashCode() -
equals
Description copied from interface:Intersectionbe careful using this equals- Specified by:
equalsin interfaceIntersection- Specified by:
equalsin interfaceShadow<IntersectionType>- Overrides:
equalsin classObject- See Also:
-