All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.florianschoppmann.java.futures.NonNullByDefault Maven / Gradle / Ivy

Go to download

Bridge gaps and help overcome inconveniences with CompletableFuture. This module includes, among other features, methods to collect the results of multiple futures into a list, provides equivalent alternatives to CompletableFuture’s monadic methods (thenApply, thenCompose, etc.) that can deal with checked exceptions, and methods for asynchronous “try-with-resources” constructs.

The newest version!
package net.florianschoppmann.java.futures;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.annotation.Nonnull;
import javax.annotation.meta.TypeQualifierDefault;

/**
 * Annotation to define that all contained entities for which a {@code null} annotation is otherwise lacking should be
 * considered as {@link Nonnull}.
 *
 * 

This annotation can be applied to all element types. */ @TypeQualifierDefault({ ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.LOCAL_VARIABLE, ElementType.METHOD, ElementType.PACKAGE, ElementType.PARAMETER, ElementType.TYPE }) @Nonnull @Retention(RetentionPolicy.RUNTIME) @interface NonNullByDefault { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy