Uses of Class
org.apache.juneau.internal.SetBuilder
Packages that use SetBuilder
-
Uses of SetBuilder in org.apache.juneau.internal
Methods in org.apache.juneau.internal that return SetBuilderModifier and TypeMethodDescriptionAdds a single value to this set.Adds multiple values to this set.SetBuilder.addAll
(Collection<E> value) Appends the contents of the specified collection into this set.Adds arbitrary values to this set.Adds a value to this set if the specified flag is true.Adds entries to this set via JSON array strings.SetBuilder.copy()
Forces the existing set to be copied instead of appended to.SetBuilder.elementType
(Class<E> value) Specifies the element type on this list.static <E> SetBuilder<E>
CollectionUtils.setBuilder
(Class<E> elementType, Type... elementTypeArgs) Instantiates a new builder of the specified set.static <E> SetBuilder<E>
CollectionUtils.setBuilder
(Set<E> addTo) Instantiates a new builder on top of the specified set.SetBuilder.sorted()
Converts the set into aSortedSet
.SetBuilder.sorted
(Comparator<E> comparator) Converts the set into aSortedSet
using the specified comparator.SetBuilder.sparse()
When specified, thebuild()
method will returnnull if the set is empty.SetBuilder.unmodifiable()
When specified,build()
will return an unmodifiable set.