Uses of Interface
no.digipost.collection.NonEmptyList
Packages that use NonEmptyList
-
Uses of NonEmptyList in no.digipost
Methods in no.digipost that return types with arguments of type NonEmptyListModifier and TypeMethodDescriptionstatic <T> EmptyResultIfEmptySourceCollector<T,?, NonEmptyList<T>> DiggCollectors.toNonEmptyList()Collect element(s) to aNonEmptyList. -
Uses of NonEmptyList in no.digipost.collection
Methods in no.digipost.collection that return NonEmptyListModifier and TypeMethodDescriptionstatic <E> NonEmptyList<E>NonEmptyList.copyOfUnsafe(E[] nonEmptyArray) Unsafe construction of non-empty list from copying the elements of an array assumed to be non-empty.static <E> NonEmptyList<E>NonEmptyList.copyOfUnsafe(Collection<E> nonEmptyCollection) Unsafe construction of non-empty list from copying the elements of a collection assumed to be non-empty.static <E> NonEmptyList<E>NonEmptyList.copyOfUnsafe(List<E> nonEmptyList) Unsafe construction of non-empty list from copying the elements of a list assumed to be non-empty.static <E> NonEmptyList<E>NonEmptyList.of(E singleElement) Construct a non-empty list with one single element.static <E> NonEmptyList<E>NonEmptyList.of(E firstElement, E... remainingElements) Construct a non-empty list containing a specific object as its first element, and any provided remaining elements.static <E> NonEmptyList<E>Construct a non-empty list containing a specific object as its first element, and any elements contained in another list as its remaining elements.static <E> NonEmptyList<E>NonEmptyList.ofUnsafe(E[] nonEmptyArray) Try to construct a non-empty list from a given array, which is assumed is not empty.static <E> NonEmptyList<E>Try to construct a non-empty list from a given list, which is assumed is not empty.Methods in no.digipost.collection that return types with arguments of type NonEmptyListModifier and TypeMethodDescriptionstatic <E> Optional<NonEmptyList<E>>NonEmptyList.copyOf(E[] array) Try to construct a non-empty list from copying the elements of a given array, which may be empty.static <E> Optional<NonEmptyList<E>>NonEmptyList.copyOf(Collection<E> collection) Try to construct a non-empty list from copying the elements of a given collection, which may be empty.static <E> Optional<NonEmptyList<E>>Try to construct a non-empty list from copying the elements of a given list, which may be empty.static <E> Optional<NonEmptyList<E>>NonEmptyList.of(E[] array) Try to construct a non-empty list from a given array, which may be empty.static <E> Optional<NonEmptyList<E>>Try to construct a non-empty list from a given list, which may be empty.