Class Java9BackportUtils

java.lang.Object
net.minecraftforge.fml.loading.Java9BackportUtils

public class Java9BackportUtils extends Object
  • Constructor Details

    • Java9BackportUtils

      public Java9BackportUtils()
  • Method Details

    • flatMapping

      public static <T, U, A, R> Collector<T,?,R> flatMapping(Function<? super T,? extends Stream<? extends U>> mapper, Collector<? super U,A,R> downstream)
    • ifPresentOrElse

      public static <T> void ifPresentOrElse(Optional<T> optional, Consumer<? super T> action, Runnable emptyAction)
    • toStream

      public static <T> Stream<T> toStream(Optional<T> optional)