package it.cavallium.data.generator; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; public interface NativeNullable { boolean isEmpty(); default boolean isPresent() { return !isEmpty(); } @NotNull T orElse(@NotNull T defaultValue); @NotNull NativeNullable or(@NotNull NativeNullable fallback); @Nullable T getNullable(); @Nullable T getNullable(@Nullable T defaultValue); }