T - generic type of represented propertiespublic interface Properties<T extends ExecutableProperty>
| Modifier and Type | Method and Description |
|---|---|
void |
declare(String name,
Supplier<T> propertySupplier)
Declare a new property
|
default void |
declare(T property)
Declare a new property
|
List<? extends T> |
getDeclaredProperties()
Get properties declared in this container
|
List<? extends T> |
getProperties()
Get all available properties
|
List<? extends T> |
getPropertiesLike(String name)
Get properties with the given name
|
Type |
getType()
Get associated type
|
boolean |
hasPropertyLike(String name)
Check if container contains property with the given name
|
int |
size()
Get amount of properties
|
void declare(String name, Supplier<T> propertySupplier)
name - the name of propertypropertySupplier - the property to adddefault void declare(T property)
property - the property to addint size()
boolean hasPropertyLike(String name)
name - the name to search forList<? extends T> getPropertiesLike(String name)
name - the name to search forList<? extends T> getDeclaredProperties()
List<? extends T> getProperties()
Type getType()
Copyright © 2020. All rights reserved.