@Override public JavaType withValueHandler(Object h) { return _unsupported(); }
@Override public StringBuilder getGenericSignature(StringBuilder sb) { return getErasedSignature(sb); }
@Override protected String buildCanonicalName() { return toString(); }
placeholders[i] = new PlaceholderForType(i); JavaType t = placeholders[i].actualType();
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act) { // See if we have an actual type placeholder to resolve; if yes, replace if (act instanceof PlaceholderForType) { ((PlaceholderForType) act).actualType(exp); return true; } // if not, try to verify compatibility. But note that we can not // use simple equality as we need to resolve recursively if (exp.getRawClass() != act.getRawClass()) { return false; } // But we can check type parameters "blindly" List<JavaType> expectedTypes = exp.getBindings().getTypeParameters(); List<JavaType> actualTypes = act.getBindings().getTypeParameters(); for (int i = 0, len = expectedTypes.size(); i < len; ++i) { JavaType exp2 = expectedTypes.get(i); JavaType act2 = actualTypes.get(i); if (!_verifyAndResolvePlaceholders(exp2, act2)) { return false; } } return true; }
placeholders[i] = new PlaceholderForType(i); JavaType t = placeholders[i].actualType();
private boolean _verifyAndResolvePlaceholders(JavaType exp, JavaType act) { // See if we have an actual type placeholder to resolve; if yes, replace if (act instanceof PlaceholderForType) { ((PlaceholderForType) act).actualType(exp); return true; } // if not, try to verify compatibility. But note that we can not // use simple equality as we need to resolve recursively if (exp.getRawClass() != act.getRawClass()) { return false; } // But we can check type parameters "blindly" List<JavaType> expectedTypes = exp.getBindings().getTypeParameters(); List<JavaType> actualTypes = act.getBindings().getTypeParameters(); for (int i = 0, len = expectedTypes.size(); i < len; ++i) { JavaType exp2 = expectedTypes.get(i); JavaType act2 = actualTypes.get(i); if (!_verifyAndResolvePlaceholders(exp2, act2)) { return false; } } return true; }
@Override public JavaType withContentValueHandler(Object h) { return _unsupported(); }
@Override public String toString() { return getErasedSignature(new StringBuilder()).toString(); }
@Override protected String buildCanonicalName() { return toString(); }
@SuppressWarnings("deprecation") @Override protected JavaType _narrow(Class<?> subclass) { return _unsupported(); }
@Override public StringBuilder getGenericSignature(StringBuilder sb) { return getErasedSignature(sb); }
@Override public JavaType withContentTypeHandler(Object h) { return _unsupported(); }
@Override public String toString() { return getErasedSignature(new StringBuilder()).toString(); }
@Override public JavaType withStaticTyping() { return _unsupported(); }
@Override public JavaType withContentType(JavaType contentType) { return _unsupported(); }
@Override public JavaType withTypeHandler(Object h) { return _unsupported(); }
@Override public JavaType refine(Class<?> rawType, TypeBindings bindings, JavaType superClass, JavaType[] superInterfaces) { return _unsupported(); }
@SuppressWarnings("deprecation") @Override protected JavaType _narrow(Class<?> subclass) { return _unsupported(); }
@Override public JavaType withValueHandler(Object h) { return _unsupported(); }