Top Description Constructors Methods
org.postgresql.util.internal

public Class Nullness

extends Object
Class Inheritance
Annotations
@SuppressWarnings:cast.unsafe, NullableProblems, contracts.postcondition
Imports
org.checkerframework.checker.nullness.qual.EnsuresNonNull, .NonNull, .Nullable, org.checkerframework.dataflow.qual.Pure

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T extends @Nullable Object> @NonNull T
public static <T extends @Nullable Object> @NonNull T
castNonNull(@Nullable T ref, String message)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Nullnessback to summary
public Nullness()

Method Detail

castNonNullback to summary
public static <T extends @Nullable Object> @NonNull T castNonNull(@Nullable T ref)
Annotations
@Pure
@EnsuresNonNull:#1
castNonNullback to summary
public static <T extends @Nullable Object> @NonNull T castNonNull(@Nullable T ref, String message)
Annotations
@Pure
@EnsuresNonNull:#1