public interface AnnotationUsage extends HasCopy<AnnotationUsage>, HasType<AnnotationUsage>, HasValue<AnnotationUsage>
Annotation
Modifier and Type | Interface and Description |
---|---|
static class |
AnnotationUsage.Factory
Factory holder.
|
Modifier and Type | Method and Description |
---|---|
List<Map.Entry<String,Value<?>>> |
getValues()
Returns a list of all the key-value pairs in this model.
|
static AnnotationUsage |
of(Type type)
Creates a new instance implementing this interface by using the class
supplied by the default factory.
|
AnnotationUsage |
put(String key,
Value<?> val)
Use the specified key-value pair when referencing the annotation.
|
static void |
setSupplier(Function<Type,AnnotationUsage> mapper)
Sets the instantiation method used to create new instances of this
interface.
|
AnnotationUsage put(String key, Value<?> val)
put(String, Value)
method.key
- the keyval
- the valueList<Map.Entry<String,Value<?>>> getValues()
static AnnotationUsage of(Type type)
setSupplier
method.type
- the typestatic void setSupplier(Function<Type,AnnotationUsage> mapper)
mapper
- the new constructorCopyright © 2016 Speedment, Inc.. All rights reserved.