Returns the raw types of the types in this set, in the same order.
()
| 709 | |
| 710 | /** Returns the raw types of the types in this set, in the same order. */ |
| 711 | public Set<Class<? super T>> rawTypes() { |
| 712 | // Java has no way to express ? super T when we parameterize TypeToken vs. Class. |
| 713 | @SuppressWarnings({"unchecked", "rawtypes"}) |
| 714 | ImmutableList<Class<? super T>> collectedTypes = |
| 715 | (ImmutableList) TypeCollector.FOR_RAW_TYPE.collectTypes(getRawTypes()); |
| 716 | return ImmutableSet.copyOf(collectedTypes); |
| 717 | } |
| 718 | |
| 719 | private static final long serialVersionUID = 0; |
| 720 | } |