Class MapFactories

    • Method Detail

      • unordered

        public static MapFactory unordered()
        Returns a MapFactory which creates maps without an order.
        Returns:
        A map factory which produces unordered maps
      • sorted

        public static MapFactory sorted​(Comparator<Object> comparator)
        Returns a MapFactory which creates maps which are sorted using the given comparator.
        Parameters:
        comparator - The comparator used to sort the map keys
        Returns:
        A map factory which produces sorted maps
      • insertionOrdered

        public static MapFactory insertionOrdered()
        Returns a MapFactory which creates maps which are sorted by insertion order.
        Returns:
        A map factory which produces maps sorted by insertion order