Checks if two types are the same or are equivalent under a variable mapping given in the type map that was provided.
(Type from, Type to, Map<String, Type> typeMap)
| 272 | * given in the type map that was provided. |
| 273 | */ |
| 274 | @SuppressWarnings("unchecked") |
| 275 | private static boolean matches(Type from, Type to, Map<String, Type> typeMap) { |
| 276 | return to.equals(from) |
| 277 | || (from instanceof TypeVariable |
| 278 | && to.equals(typeMap.get(((TypeVariable<?>) from).getName()))); |
| 279 | |
| 280 | } |
| 281 | |
| 282 | @Override public final int hashCode() { |
| 283 | return this.hashCode; |
no test coverage detected