Class ParameterComparator

    • Field Detail

      • paramConfKeyPos

        protected final String paramConfKeyPos
        The key for the parameter configuration providing the position of the parameter (if set). If this is null, the position will be ignored when comparing.
      • uuidComparator

        protected final SerialisableComparator<UUID> uuidComparator
        The comparator comparing UUIDs unsigned, that is a leading 8 is less than a leading 7.
    • Constructor Detail

      • ParameterComparator

        public ParameterComparator()
        Creates a new ParameterComparator with a UUID comparator comparing UUIDs unsigned.
      • ParameterComparator

        public ParameterComparator​(String paramConfKeyPos)
        Creates a new ParameterComparator with a UUID comparator comparing UUIDs unsigned an using the designated key to retrieve the position from the parameter configuration. This may be null.
        Parameters:
        paramConfKeyPos - The key for the parameter configuration providing the position of the parameter (if set). If this is null, the position will be ignored when comparing.
    • Method Detail

      • getSortedParams

        public static <T extends ParameterCollection<T> getSortedParams​(Collection<T> unsortedParams)
        Creates a new collection having the designated parameters sorted with this comparator.
        Parameters:
        unsortedParams - The unsorted collection of parameters.
        Returns:
        A sorted collection of the parameters.