|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use CollectionBuilder | |
|---|---|
| net.sf.staccatocommons.lang | This package contains Options, SoftExceptions
and null handling utilities. |
| Uses of CollectionBuilder in net.sf.staccatocommons.lang |
|---|
| Methods in net.sf.staccatocommons.lang that return CollectionBuilder | ||
|---|---|---|
static
|
CollectionBuilder.from(Collection<A> collection)
Answers a new CollectionBuilder that configures a
Collection |
|
static
|
CollectionBuilder.listWith(A element)
Answers a new CollectionBuilder that configures a List,
with the given element already added. |
|
static
|
CollectionBuilder.setWith(A element)
Answers a new CollectionBuilder that configures a Set, with
the given element already added |
|
static
|
CollectionBuilder.sortedSetWith(A element)
Answers a new CollectionBuilder that configures a SortedSet
, with the given element already added |
|
CollectionBuilder<A,B> |
CollectionBuilder.unwrap()
Disables wrapping, which means that a built collection will be returned just as it was created. |
|
CollectionBuilder<A,B> |
CollectionBuilder.with(A element)
Adds an element to the list |
|
CollectionBuilder<A,B> |
CollectionBuilder.withIf(A element,
net.sf.staccatocommons.defs.Evaluable<? super A> evaluable)
Adds an element to the list if it satisfies the given condition |
|
CollectionBuilder<A,B> |
CollectionBuilder.withWrapper(net.sf.staccatocommons.defs.Applicable<B,B> wrapperFunction)
Sets the wrapper function, that is, the Applicable to apply to the
resulting collection before returning it through build(). |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||