Package org.postgresql.util.internal
Class Nullness
java.lang.Object
org.postgresql.util.internal.Nullness
The methods in this class allow to cast nullable reference to a non-nullable one.
This is an internal class, and it is not meant to be used as a public API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends @Nullable Object>
@NonNull TcastNonNull
(@Nullable T ref) static <T extends @Nullable Object>
@NonNull TcastNonNull
(@Nullable T ref, String message)
-
Constructor Details
-
Nullness
public Nullness()
-
-
Method Details
-
castNonNull
@Pure @EnsuresNonNull("#1") public static <T extends @Nullable Object> @NonNull T castNonNull(@Nullable T ref) -
castNonNull
-