T - the type parameterpublic class StaticResourcePool<T> extends Object
| Constructor and Description | 
|---|
StaticResourcePool(List<T> items)
Instantiates a new Static resource pool. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
apply(Consumer<T> f)
With u. 
 | 
void | 
apply(Consumer<T> f,
     Predicate<T> filter,
     boolean exclusive)
With u. 
 | 
List<T> | 
getAll()
Gets all. 
 | 
<U> U | 
run(Function<T,U> f)
With u. 
 | 
<U> U | 
run(Function<T,U> f,
   Predicate<T> filter,
   boolean exclusive)
With u. 
 | 
int | 
size()
Size int. 
 | 
public void apply(@Nonnull Consumer<T> f, Predicate<T> filter, boolean exclusive)
f - the ffilter - the filterexclusive - the exclusivepublic <U> U run(@Nonnull Function<T,U> f)
U - the type parameterf - the fpublic <U> U run(@Nonnull Function<T,U> f, Predicate<T> filter, boolean exclusive)
U - the type parameterf - the ffilter - the filterexclusive - the exclusivepublic int size()
Copyright © 2019 SimiaCryptus Software. All rights reserved.