@SuppressWarnings("unchecked")
	public static <T extends TypesafeEnum<T>> Set<T> values(Class<T> clazz) {
		Set<T> set = new HashSet<T>();
		
		if (constants.containsKey(clazz)) {
			set.addAll((Set<T>) constants.get(clazz));
		}
		
		return set;
	}
@SuppressWarnings("unchecked")
	public static <T extends TypesafeEnum<T>> Set<T> values(Class<T> clazz) {
		Set<T> set = new HashSet<T>();
		
		if (constants.containsKey(clazz)) {
			set.addAll((Set<T>) constants.get(clazz));
		}
		
		return set;
	}
@ SuppressWarnings ( "unchecked" ) public static < T extends TypesafeEnum < T > > Set < T > values ( Class < T > clazz ) { Set < T > set = new HashSet < T > ( ) ; if ( constants . containsKey ( clazz ) ) { set . addAll ( ( Set < T > ) constants . get ( clazz ) ) ; } return set ; }
Returns the instance set of the specified {@code TypesafeEnum} class.

@param clazz {@code TypesafeEnum} class.
@return The instance set of the specified {@code TypesafeEnum} class.
Returns the instance set of the specified { @code TypesafeEnum } class .