Class SetUtils


  • public final class SetUtils
    extends Object
    Set-related convenience methods.
    • Method Detail

      • prefixSet

        public static String[] prefixSet​(Set<String> set,
                                         String prefix)
        Collects strings starting with the given prefix from the given set.
        Parameters:
        set - a (nullable) set of strings
        prefix - a prefix to look for in the string set
        Returns:
        an array of the matching strings from the given set