Code example for TypeToken

Methods: getRawType

0
      if (classloader == null) {
        classloader = new ByteCodeClassLoader(typeClassloader);
        classloaders.put(key.getType(), classloader);
      } 
 
      return (Class<DatumWriter<?>>) classloader.addClass(classDef, key.getType().getRawType())
                                                .loadClass(classDef.getClassName());
    } 
  } 
 
  private static final class CacheKey { 
    private final Schema schema;
    private final TypeToken<?> type;
 
    private CacheKey(Schema schema, TypeToken<?> type) {
      this.schema = schema;
      this.type = type;
    } 
 
    public Schema getSchema() {
Contextual code suggestions in your IDE  Get Codota for Java