Package lumis.util.collections
Class Sets
- java.lang.Object
-
- lumis.util.collections.Sets
-
public class Sets extends java.lang.Object
Provides operations oversets
.- Since:
- 8.1.0
- Version:
- $Revision: 19766 $ $Date: 2017-01-05 18:35:09 -0200 (Thu, 05 Jan 2017) $
-
-
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 currentIItemFilter
static <T> java.util.Set<T>
unmodifiableSet(T... elements)
Returns an unmodifiableSet
with the given elements.
-
-
-
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 currentIItemFilter
- Parameters:
original
- original setfilter
- 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 unmodifiableSet
with the given elements.- Parameters:
elements
- the elements to include in the returned set.- Returns:
- the set.
- Since:
- 10.0.0
-
-