@Test public void testParameterizedType() { TypeLiteral<List<String>> a = new TypeLiteral<List<String>>() { }; TypeLiteral<List<String>> b = new TypeLiteral<List<String>>() { }; assertEquals(a, b); assertEquals(b, a); assertEquals("java.util.List<java.lang.String>", 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);  }