Uses of Class
org.apache.juneau.commons.collections.Sets
Packages that use Sets
Package
Description
Enhanced collection utilities that extend the standard Java Collections Framework with fluent APIs,
specialized collection types, and caching capabilities.
Common internal utilities.
Internal Utilities
-
Uses of Sets in org.apache.juneau.commons.collections
Methods in org.apache.juneau.commons.collections that return SetsModifier and TypeMethodDescriptionAdds a single value to this set.Adds multiple values to this set.Sets.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.Sets.concurrent()When specified,build()will return a thread-safe synchronized set.Sets.concurrent(boolean value) Sets whetherbuild()should return a thread-safe synchronized set.static <E> Sets<E>Static creator.Sets.elementFunction(Function<Object, E> elementFunction) Sets the element conversion function for converting elements inaddAny(Object...).Sets.elementType(Class<E> value) Specifies the element type on this list.Sets.filtered()Applies a default filter that excludes common "empty" or "unset" values from being added to the set.Applies a filter predicate to elements when building the set.Sets.ordered()When specified,build()will use aLinkedHashSetto preserve insertion order.Sets.ordered(boolean value) Sets whetherbuild()should use aLinkedHashSetto preserve insertion order.Sets.sorted()Converts the set into aSortedSet.Sets.sorted(Comparator<E> comparator) Converts the set into aSortedSetusing the specified comparator.Sets.sparse()When specified, thebuild()method will returnnull if the set is empty.Sets.unmodifiable()When specified,build()will return an unmodifiable set. -
Uses of Sets in org.apache.juneau.commons.utils
Methods in org.apache.juneau.commons.utils that return Sets -
Uses of Sets in org.apache.juneau.internal
Methods in org.apache.juneau.internal that return SetsModifier and TypeMethodDescriptionstatic <T> Sets<T>ConverterUtils.toSetBuilder(Object value, Class<T> type) Converts the specified object to aSetswith elements of the specified type.