@Test void testIsClass() { GenericType<String> type = new GenericType<String>(){}; assertThat(type.isClass(), is(true)); GenericType<List<String>> type2 = new GenericType<List<String>>(){}; assertThat(type2.isClass(), is(false)); GenericType<List> type3 = new GenericType<List>(){}; assertThat(type3.isClass(), is(true)); }
public boolean isClass() { return rawType.equals(type); }
GenericType implements Type { public boolean isClass() { return rawType.equals(type); } }
GenericType implements Type { public boolean isClass() { return rawType.equals(type); } private  GenericType(Type type, Class<?> rawType); protected  GenericType(); }
GenericType implements Type { public boolean isClass() { return rawType.equals(type); } private  GenericType(Type type, Class<?> rawType); protected  GenericType(); static GenericType<N> create(Type genericType); static GenericType<N> create(Class<N> clazz); static GenericType<N> create(N object); Type type(); Class<?> rawType(); boolean isClass(); @SuppressWarnings("unchecked") T cast(Object object); @Override String getTypeName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
GenericType implements Type { public boolean isClass() { return rawType.equals(type); } private  GenericType(Type type, Class<?> rawType); protected  GenericType(); static GenericType<N> create(Type genericType); static GenericType<N> create(Class<N> clazz); static GenericType<N> create(N object); Type type(); Class<?> rawType(); boolean isClass(); @SuppressWarnings("unchecked") T cast(Object object); @Override String getTypeName(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }