I have the following example:
import java.util.EnumSet;
import java.util.Iterator;
public class SizeSet {
public static void main(String[] args) {
EnumSet largeSize
EnumSet largeSize is a set of Enum values which contains XL, XXL and XXXL.
Size
Size is a class of Enum type with constant values S, M, L, XL, XXL, XXXL.
largeSize.iterator()
The Iterator for EnumSet is in natural order, the order in which the values of the enum were originally declared.
To Know more read the api doc : http://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html