Annotation Type PolyKeyFor
-
@Documented @Retention(RUNTIME) @Target({TYPE_USE,TYPE_PARAMETER}) @PolymorphicQualifier(UnknownKeyFor.class) public @interface PolyKeyForA polymorphic qualifier for the Map Key (@KeyFor) type system.Any method written using
@PolyKeyForconceptually has an arbitrary number of versions: one in which every instance of@PolyKeyForhas been replaced by@UnknownKeyFor, one in which every instance of@PolyKeyForhas been replaced by@KeyForBottom, and ones in which every instance of@PolyKeyForhas been replaced by@KeyFor, for every possible combination of map arguments.- See the Checker Framework Manual:
- Nullness Checker, Qualifier polymorphism