@Test public void testShouldReturnTypeWhenItIsGivenWhileObjectCreation() { TypeToken<Boolean> typeToken = new TypeToken<Boolean>() { }; Type type = typeToken.getType(); assertThat(type).isEqualTo(Boolean.class); }
public Type getType() { return type; }
TypeToken { public Type getType() { return type; } }
TypeToken { public Type getType() { return type; } TypeToken(); private  TypeToken(Class<?> classOfT); }
TypeToken { public Type getType() { return type; } TypeToken(); private  TypeToken(Class<?> classOfT); Type getType(); }
TypeToken { public Type getType() { return type; } TypeToken(); private  TypeToken(Class<?> classOfT); Type getType();  }