private static TypeName withWildCardTypeParameters()

in dataenum-processor/src/main/java/com/spotify/dataenum/processor/generator/value/ValueTypeFactory.java [248:258]


  private static TypeName withWildCardTypeParameters(OutputValue value) {
    if (!value.hasTypeVariables()) {
      return value.outputClass();
    }

    TypeName[] wildCards = new TypeName[Iterables.sizeOf(value.typeVariables())];

    Arrays.fill(wildCards, WildcardTypeName.subtypeOf(TypeName.OBJECT));

    return ParameterizedTypeName.get(value.outputClass(), wildCards);
  }