@Test public void testWilcardType() { TypeLiteral<List<?>> a = new TypeLiteral<List<?>>() { }; TypeLiteral<List<?>> b = new TypeLiteral<List<?>>() { }; assertEquals(a, b); assertEquals(b, a); assertEquals("java.util.List<?>", a.type().getTypeName()); }
public Type type() { return type; }
TypeLiteral { public Type type() { return type; } }
TypeLiteral { public Type type() { return type; } TypeLiteral(); }
TypeLiteral { public Type type() { return type; } TypeLiteral(); Type type(); @Override final int hashCode(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override boolean equals(Object o); }
TypeLiteral { public Type type() { return type; } TypeLiteral(); Type type(); @Override final int hashCode(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override boolean equals(Object o);  }