public static Collection < TypeQualifierValue < ? > > getComplementaryExclusiveTypeQualifierValue ( TypeQualifierValue < ? > tqv ) { assert tqv . isExclusiveQualifier ( ) ; LinkedList < TypeQualifierValue < ? > > result = new LinkedList <> ( ) ; for ( TypeQualifierValue < ? > t : instance . get ( ) . allKnownTypeQualifiers ) { // // Any TypeQualifierValue with the same // annotation class but a different value is a complementary // type qualifier. // if ( t . typeQualifier . equals ( tqv . typeQualifier ) && ! Objects . equals ( t . value , tqv . value ) ) { result . add ( t ) ; } } return result ; }
Get the complementary TypeQualifierValues for given exclusive type qualifier .