public abstract class AnnotatedBuilder<T extends AnnotatedBuilder<T>> extends Object
Annotated
instances.Constructor and Description |
---|
AnnotatedBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
annotations(Annotated other)
Adds annotations from another annotated element.
|
protected abstract Annotated |
getAnnotated()
Returns the
Annotated instance for this builder. |
T |
has(String name,
Iterable<?> values)
Adds an annotation using a comma-separated list of the string representations of the given values.
|
T |
has(String name,
Object... values)
Adds an annotation using a comma-separated list of the string representations of the given values.
|
T |
has(String name,
Object value)
Adds an annotation.
|
T |
has(String name,
Stream<?> values)
Adds an annotation using a comma-separated list of the string representations of the given values.
|
T |
hasIf(String name,
Iterable<?> values)
If the given iterable is non-empty, adds an annotation using a comma-separated list of the string representations of its members.
|
T |
hasIf(String name,
Object value)
Adds an annotation if the given value is non-null
|
T |
hasIf(String name,
Optional<?> value)
Adds an annotation if the given value is defined
|
T |
hasIf(String name,
Stream<?> values)
If the given stream is non-empty, adds an annotation using a comma-separated list of the string representations of its members.
|
protected abstract Annotated getAnnotated()
Annotated
instance for this builder.public T has(String name, Object... values)
public T has(String name, Iterable<?> values)
public T has(String name, Stream<?> values)
public T hasIf(String name, Iterable<?> values)
public T hasIf(String name, Stream<?> values)
public T hasIf(String name, Optional<?> value)
Copyright © 2024 The Cornutum Project. All rights reserved.