blob: 163254aef3e7078f7d27fc305cfa9bb62bfba4f4 [file] [log] [blame]
package org.jetbrains.protocolReader;
class TypeRef<T> {
final Class<T> typeClass;
private TypeHandler<T> type;
TypeRef(Class<T> typeClass) {
this.typeClass = typeClass;
}
Class<?> getTypeClass() {
return typeClass;
}
TypeHandler<T> get() {
return type;
}
void set(TypeHandler<?> type) {
//noinspection unchecked
this.type = (TypeHandler<T>)type;
}
}