Пример #1
0
 public static TypeParameter superOf(String fullyQualifiedClassName) {
   TypeParameter p = new TypeParameter(fullyQualifiedClassName);
   p.wildcardExpression = "? super ";
   return p;
 }
Пример #2
0
 public static TypeParameter wildcard() {
   TypeParameter p = new TypeParameter("");
   p.wildcardExpression = "?";
   return p;
 }
Пример #3
0
 public static TypeParameter extending(String fullyQualifiedClassName) {
   TypeParameter p = new TypeParameter(fullyQualifiedClassName);
   p.wildcardExpression = "? extends ";
   return p;
 }