Class Empty

java.lang.Object
org.pcollections.Empty

public final class Empty extends Object
A static utility class for getting empty PCollections backed by the 'default' implementations.
  • Constructor Details

    • Empty

      private Empty()
  • Method Details

    • stack

      public static <E> PStack<E> stack()
    • queue

      public static <E> PQueue<E> queue()
    • vector

      public static <E> PVector<E> vector()
    • set

      public static <E> PSet<E> set()
    • orderedMap

      public static <K, V> PMap<K,V> orderedMap()
    • orderedSet

      public static <E> PSet<E> orderedSet()
    • bag

      public static <E> PBag<E> bag()
    • map

      public static <K, V> PMap<K,V> map()
    • sortedSet

      public static <E extends Comparable<? super E>> PSortedSet<E> sortedSet()
    • sortedSet

      public static <E> PSortedSet<E> sortedSet(Comparator<? super E> comparator)
    • sortedMap

      public static <K extends Comparable<? super K>, V> PSortedMap<K,V> sortedMap()
    • sortedMap

      public static <K, V> PSortedMap<K,V> sortedMap(Comparator<? super K> comparator)