Class UnmodifiableList


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

      Constructors 
      Modifier Constructor Description
      private UnmodifiableList()  
    • Method Summary

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

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

      • UnmodifiableList

        private UnmodifiableList()
    • Method Detail

      • create

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