Class Sets


  • public class Sets
    extends java.lang.Object
    Provides operations over sets.
    Since:
    8.1.0
    Version:
    $Revision$ $Date$
    • Constructor Summary

      Constructors 
      Constructor Description
      Sets()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <V> java.util.Set<V> filter​(java.util.Set<V> original, IItemFilter<V> filter)
      Returns a set filtered by the current IItemFilter
      static <T> java.util.Set<T> unmodifiableSet​(T... elements)
      Returns an unmodifiable Set with the given elements.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Sets

        public Sets()
    • Method Detail

      • filter

        public static <V> java.util.Set<V> filter​(java.util.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> java.util.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