Class Static

  • public abstract class Static
    extends java.lang.Object
    Definitions of objects to be statically imported.

    Note to developers

    Please give careful consideration before including an object in this class. Pros:

    • Code that uses these objects will be terser.


    • Namespace pollution,
    • code that is difficult to understand (a general problem with static imports),
    • potential cyclic initialization.
    • Constructor Summary

      Modifier Constructor Description
      private Static()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.List<E> cons​(E first, java.util.List<? extends E> rest)
      Builds a list.
      • Methods inherited from class java.lang.Object

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

      • Static

        private Static()
    • Method Detail

      • cons

        public static <E> java.util.List<E> cons​(E first,
                                                 java.util.List<? extends E> rest)
        Builds a list.