In Java, "Set" is an interface. What you are looking for is a "HashSet" https://docs.oracle.com/javase/8/docs/api/java/util/HashSet.html or any other class that implements the interface "Set" like a TreeSet, LinkedHashSet, CopyOnWriteArraySet, EnumSet, and others, such as a Map's key set.