Package lumis.util.collections
Class Sets
- java.lang.Object
-
- lumis.util.collections.Sets
-
-
Constructor Summary
Constructors Constructor Description Sets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> Set<V>
filter(Set<V> original, IItemFilter<V> filter)
Returns a set filtered by the currentIItemFilter
static <T> Set<T>
unmodifiableSet(T... elements)
Returns an unmodifiableSet
with the given elements.
-
-
-
Method Detail
-
filter
public static <V> Set<V> filter(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> 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
-
-