Class ConverterCollections.ConverterSortedSet<F,​T>

    • Constructor Detail

      • ConverterSortedSet

        public ConverterSortedSet​(SortedSet<F> set,
                                  Converter<F,​T> convUp,
                                  Converter<T,​F> convDown)
        Constructor.
        Parameters:
        set - the underlying SortedSet
        convUp - the Converter from the underlying SortedSet
        convDown - the Converter to the underlying SortedSet
    • Method Detail

      • instantiateSortedSet

        protected SortedSet<T> instantiateSortedSet​(SortedSet<F> set,
                                                    Converter<F,​T> convUp,
                                                    Converter<T,​F> convDown)
        Create a Converter SortedSet.
        Parameters:
        set - the underlying SortedSet
        convUp - the Converter to view the underlying SortedSet through
        convDown - the Converter to pass items down to the underlying SortedSet through
        Returns:
        a Converter SortedSet
      • getSortedSet

        public SortedSet<F> getSortedSet()
        Return the underlying SortedSet.
        Returns:
        the underlying SortedSet