Class SortKeyComparator

    • Constructor Detail

      • SortKeyComparator

        public SortKeyComparator​(List<SortKey> sortKeys)
        Construct a Comparator that will compare two JsonValue objects based on the provided list of SortKeys.
        Parameters:
        sortKeys - the sortKeys to utilize for sorting.
      • SortKeyComparator

        public SortKeyComparator​(List<SortKey> sortKeys,
                                 SortKeyComparator.NullPosition nullPosition)
        Construct a Comparator that will compare two JsonValue objects based on the provided list of SortKeys and options.
        Parameters:
        sortKeys - the sortKeys to utilize for sorting.
        nullPosition - Whether a JsonValue that wraps a null object should be considered less or more that one that is not.
        See Also:
        SortKeyComparator.NullPosition