Document interfaces with @FunctionalInterface.

Javadoc.
This commit is contained in:
Gary Gregory 2019-09-13 11:47:47 -04:00
parent a1395b6823
commit aac260f84c
4 changed files with 7 additions and 1 deletions

View File

@ -76,6 +76,7 @@ package org.apache.commons.lang3.builder;
*
* @since 3.0
*/
@FunctionalInterface
public interface Builder<T> {
/**

View File

@ -39,6 +39,7 @@ package org.apache.commons.lang3.builder;
* @param <T> the type of objects that this object may be differentiated against
* @since 3.3
*/
@FunctionalInterface
public interface Diffable<T> {
/**

View File

@ -69,6 +69,7 @@ import org.apache.commons.lang3.Validate;
* &lt;T&gt; T obtain(Typed&lt;T&gt; typed, ...);
* </pre>
*
* @param <T> the type
* @since 3.2
*/
public abstract class TypeLiteral<T> implements Typed<T> {

View File

@ -20,13 +20,16 @@ import java.lang.reflect.Type;
/**
* Generalization of "has a type."
*
* @param <T> the type
* @see TypeLiteral
* @since 3.2
*/
@FunctionalInterface
public interface Typed<T> {
/**
* Get the {@link Type} represented by this entity.
* Gets the {@link Type} represented by this entity.
*
* @return Type
*/