@@ -425,7 +425,6 @@ private static class TemporaryPair<A extends @Nullable Object, B extends @Nullab
425
425
* <p>The order of the resulting stream is defined if and only if the order of the original stream
426
426
* was defined.
427
427
*/
428
- @ Beta
429
428
public static <T extends @ Nullable Object , R extends @ Nullable Object > Stream <R > mapWithIndex (
430
429
Stream <T > stream , FunctionWithIndex <? super T , ? extends R > function ) {
431
430
checkNotNull (stream );
@@ -509,7 +508,6 @@ Splitr createSplit(Spliterator<T> from, long i) {
509
508
* <p>The order of the resulting stream is defined if and only if the order of the original stream
510
509
* was defined.
511
510
*/
512
- @ Beta
513
511
public static <R extends @ Nullable Object > Stream <R > mapWithIndex (
514
512
IntStream stream , IntFunctionWithIndex <R > function ) {
515
513
checkNotNull (stream );
@@ -589,7 +587,6 @@ Splitr createSplit(Spliterator.OfInt from, long i) {
589
587
* <p>The order of the resulting stream is defined if and only if the order of the original stream
590
588
* was defined.
591
589
*/
592
- @ Beta
593
590
public static <R extends @ Nullable Object > Stream <R > mapWithIndex (
594
591
LongStream stream , LongFunctionWithIndex <R > function ) {
595
592
checkNotNull (stream );
@@ -669,7 +666,6 @@ Splitr createSplit(Spliterator.OfLong from, long i) {
669
666
* <p>The order of the resulting stream is defined if and only if the order of the original stream
670
667
* was defined.
671
668
*/
672
- @ Beta
673
669
public static <R extends @ Nullable Object > Stream <R > mapWithIndex (
674
670
DoubleStream stream , DoubleFunctionWithIndex <R > function ) {
675
671
checkNotNull (stream );
@@ -735,7 +731,6 @@ Splitr createSplit(Spliterator.OfDouble from, long i) {
735
731
*
736
732
* @since 21.0
737
733
*/
738
- @ Beta
739
734
public interface FunctionWithIndex <T extends @ Nullable Object , R extends @ Nullable Object > {
740
735
/** Applies this function to the given argument and its index within a stream. */
741
736
@ ParametricNullness
@@ -791,7 +786,6 @@ public int characteristics() {
791
786
*
792
787
* @since 21.0
793
788
*/
794
- @ Beta
795
789
public interface IntFunctionWithIndex <R extends @ Nullable Object > {
796
790
/** Applies this function to the given argument and its index within a stream. */
797
791
@ ParametricNullness
@@ -806,7 +800,6 @@ public interface IntFunctionWithIndex<R extends @Nullable Object> {
806
800
*
807
801
* @since 21.0
808
802
*/
809
- @ Beta
810
803
public interface LongFunctionWithIndex <R extends @ Nullable Object > {
811
804
/** Applies this function to the given argument and its index within a stream. */
812
805
@ ParametricNullness
@@ -821,7 +814,6 @@ public interface LongFunctionWithIndex<R extends @Nullable Object> {
821
814
*
822
815
* @since 21.0
823
816
*/
824
- @ Beta
825
817
public interface DoubleFunctionWithIndex <R extends @ Nullable Object > {
826
818
/** Applies this function to the given argument and its index within a stream. */
827
819
@ ParametricNullness
@@ -853,7 +845,6 @@ public interface DoubleFunctionWithIndex<R extends @Nullable Object> {
853
845
* split has a last element of null, so throw NPE" from "the final split was empty, so look for an
854
846
* element in the prior one.")
855
847
*/
856
- @ Beta
857
848
public static <T > java .util .Optional <T > findLast (Stream <T > stream ) {
858
849
class OptionalState {
859
850
boolean set = false ;
@@ -932,7 +923,6 @@ T get() {
932
923
* @see IntStream#findFirst()
933
924
* @throws NullPointerException if the last element of the stream is null
934
925
*/
935
- @ Beta
936
926
public static OptionalInt findLast (IntStream stream ) {
937
927
// findLast(Stream) does some allocation, so we might as well box some more
938
928
java .util .Optional <Integer > boxedLast = findLast (stream .boxed ());
@@ -951,7 +941,6 @@ public static OptionalInt findLast(IntStream stream) {
951
941
* @see LongStream#findFirst()
952
942
* @throws NullPointerException if the last element of the stream is null
953
943
*/
954
- @ Beta
955
944
public static OptionalLong findLast (LongStream stream ) {
956
945
// findLast(Stream) does some allocation, so we might as well box some more
957
946
java .util .Optional <Long > boxedLast = findLast (stream .boxed ());
@@ -970,7 +959,6 @@ public static OptionalLong findLast(LongStream stream) {
970
959
* @see DoubleStream#findFirst()
971
960
* @throws NullPointerException if the last element of the stream is null
972
961
*/
973
- @ Beta
974
962
public static OptionalDouble findLast (DoubleStream stream ) {
975
963
// findLast(Stream) does some allocation, so we might as well box some more
976
964
java .util .Optional <Double > boxedLast = findLast (stream .boxed ());
0 commit comments