Class UnmodifiableSet


  • public final class UnmodifiableSet
    extends java.lang.Object
    a factory for creating unmodifiable HashSets by presenting values to a var-args creator method.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private UnmodifiableSet()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> java.util.Set<T> create​(T... elements)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnmodifiableSet

        private UnmodifiableSet()
    • Method Detail

      • create

        @SafeVarargs
        public static <T> java.util.Set<T> create​(T... elements)