Class Sets


  • public class Sets
    extends Object
    Provides operations over sets.
    Since:
    8.1.0
    Version:
    $Revision: 19766 $ $Date: 2017-01-05 18:35:09 -0200 (Thu, 05 Jan 2017) $
    • Constructor Detail

      • Sets

        public Sets()
    • Method Detail

      • filter

        public static <V> Set<V> filter​(Set<V> original,
                                        IItemFilter<V> filter)
                                 throws PortalException
        Returns a set filtered by the current IItemFilter
        Parameters:
        original - original set
        filter - filter to be applied on original set
        Returns:
        new filtered set
        Throws:
        PortalException
        Since:
        8.1.0
      • unmodifiableSet

        @SafeVarargs
        public static <T> Set<T> unmodifiableSet​(T... elements)
        Returns an unmodifiable Set with the given elements.
        Parameters:
        elements - the elements to include in the returned set.
        Returns:
        the set.
        Since:
        10.0.0