Uses of Class
me.croabeast.common.CollectionBuilder
Packages that use CollectionBuilder
-
Uses of CollectionBuilder in me.croabeast.common
Methods in me.croabeast.common that return CollectionBuilderModifier and TypeMethodDescriptionAdds a single element to the collection.Adds all elements from the provided iterable to this builder.CollectionBuilder.addAll(Collection<? extends T> elements) Adds all elements from the provided collection to this builder.CollectionBuilder.addAll(Enumeration<? extends T> elements) Adds all elements from the provided enumeration to this builder.Adds all elements from the provided iterator to this builder.final CollectionBuilder<T> Adds all provided elements to this builder.CollectionBuilder.apply(UnaryOperator<T> operator) Applies a transformation function to each element in this builder.@NotNull CollectionBuilder<T> CollectionBuilder.copy()Creates a copy of thisCollectionBuilder.Filters the elements of the collection based on the provided predicate.<U> CollectionBuilder<U> Maps each element in this builder to a new value using the provided function.static <T> CollectionBuilder<T> Creates a newCollectionBuilderfrom the elements provided by an iterable.static <T> CollectionBuilder<T> CollectionBuilder.of(Collection<T> collection) Creates a newCollectionBuilderfrom the provided collection.static <T> CollectionBuilder<T> CollectionBuilder.of(Enumeration<T> enumeration) Creates a newCollectionBuilderfrom the elements provided by an enumeration.static <T> CollectionBuilder<T> Creates a newCollectionBuilderfrom the elements provided by an iterator.static <K,V> CollectionBuilder <Map.Entry<K, V>> Creates a newCollectionBuilderfrom the entries of the provided map.static <T> CollectionBuilder<T> CollectionBuilder.of(CollectionBuilder<T> builder) Creates a copy of the givenCollectionBuilder.static <T> CollectionBuilder<T> CollectionBuilder.of(T... elements) Creates a newCollectionBuilderfrom an array of elements.Removes a single element from the collection.CollectionBuilder.removeAll(Collection<? extends T> elements) Removes all elements in the specified collection from this builder.CollectionBuilder.sort(Comparator<? super T> comparator) Sorts the elements in this builder using the provided comparator.Methods in me.croabeast.common with parameters of type CollectionBuilderModifier and TypeMethodDescriptionstatic <T> CollectionBuilder<T> CollectionBuilder.of(CollectionBuilder<T> builder) Creates a copy of the givenCollectionBuilder.