public final class JavaEightUtil extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
emptyDoubleStream()
Creates an empty DoubleStream using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyIntStream()
Creates an empty IntStream using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyLongStream()
Creates an empty LongStream using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyOptional()
Creates an empty Optional using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyOptionalDouble()
Creates an empty OptionalDouble using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyOptionalInt()
Creates an empty OptionalInt using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyOptionalLong()
Creates an empty OptionalLong using reflection to stay backwards-compatible with older JDKs.
|
static Object |
emptyStream()
Creates an empty Stream using reflection to stay backwards-compatible with older JDKs.
|
public static Object emptyOptional()
public static Object emptyOptionalDouble()
public static Object emptyOptionalInt()
public static Object emptyOptionalLong()
public static Object emptyStream()
public static Object emptyDoubleStream()
public static Object emptyIntStream()
public static Object emptyLongStream()
Copyright © 2021. All rights reserved.