return MAP_TYPE.equals(type.getRawType());
}
- public static boolean isMapType(final Type type) {
- return type instanceof ParameterizedType && isMapType((ParameterizedType) type);
- }
-
/**
* Returns an instance of {@link ParameterizedType} describing the typed {@link Set}<V> with concrete type
* of value.
return SET_TYPE_WILDCARD;
}
+ public static boolean isSetType(final ParameterizedType type) {
+ return SET_TYPE.equals(type.getRawType());
+ }
+
/**
* Returns an instance of {@link ParameterizedType} describing the typed {@link List}<V> with concrete type
* of value.
return LIST_TYPE_WILDCARD;
}
- public static boolean isSetType(final ParameterizedType type) {
- return SET_TYPE.equals(type.getRawType());
- }
-
public static boolean isListType(final ParameterizedType type) {
return LIST_TYPE.equals(type.getRawType());
}
- public static boolean isListType(final Type type) {
- return type instanceof ParameterizedType && isListType((ParameterizedType) type);
- }
-
/**
* Returns an instance of {@link ParameterizedType} describing the typed {@link ListenableFuture}<V>
* with concrete type of value.