Beispiel #1
0
 @Nullable
 public ModelType<?> getLowerBound() {
   WildcardWrapper wildcardType = getWildcardType();
   if (wildcardType == null) {
     return null;
   } else {
     TypeWrapper lowerBound = wildcardType.getLowerBound();
     if (lowerBound == null) {
       return null;
     }
     return Simple.typed(lowerBound);
   }
 }
Beispiel #2
0
 @Nullable
 public ModelType<?> getUpperBound() {
   WildcardWrapper wildcardType = getWildcardType();
   if (wildcardType == null) {
     return null;
   } else {
     ModelType<?> upperBound = Simple.typed(wildcardType.getUpperBound());
     if (upperBound.equals(UNTYPED)) {
       return null;
     }
     return upperBound;
   }
 }