Interface SortedSnowflakeCacheView<T extends java.lang.Comparable<? super T> & ISnowflake>

    • Method Detail

      • forEachUnordered

        void forEachUnordered​(@Nonnull
                              java.util.function.Consumer<? super T> action)
        Behavior similar to Iterable.forEach(Consumer) but does not preserve order.
        This will not copy the data store as sorting is not needed.
        Specified by:
        forEachUnordered in interface CacheView<T extends java.lang.Comparable<? super T> & ISnowflake>
        Parameters:
        action - The action to perform
        Throws:
        java.lang.NullPointerException - If provided with null
        Since:
        4.0.0
      • asSet

        @Nonnull
        java.util.NavigableSet<T> asSet()
        Description copied from interface: CacheView
        Creates an immutable snapshot of the current cache state.
        This will copy all elements contained in this cache into a set.
        Specified by:
        asSet in interface CacheView<T extends java.lang.Comparable<? super T> & ISnowflake>
        Returns:
        Immutable set of cached elements
      • streamUnordered

        @Nonnull
        java.util.stream.Stream<T> streamUnordered()
        Behavior similar to CacheView.stream() which does not preserve order.
        Returns:
        Stream of the contained elements
        Since:
        4.0.0
      • parallelStreamUnordered

        @Nonnull
        java.util.stream.Stream<T> parallelStreamUnordered()
        Behavior similar to CacheView.parallelStream() which does not preserve order.
        Returns:
        (Parallel) Stream of contained elements
        Since:
        4.0.0