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