public interface ContentContainer<T extends Content> extends Serializable
Modifier and Type | Method and Description |
---|---|
ContentContainer<T> |
add(T content) |
ContentContainer<T> |
addAll(Collection<T> content) |
default List<T> |
get(String name) |
List<T> |
getAll() |
default <R extends T> |
getFirst(String name) |
default <R extends T> |
getRequired(String name) |
ContentContainer<T> |
remove(T content) |
ContentContainer<T> |
removeAll(String... name) |
ContentContainer<T> |
replace(T content) |
ContentContainer<T> add(T content)
ContentContainer<T> addAll(Collection<T> content)
ContentContainer<T> remove(T content)
ContentContainer<T> removeAll(String... name)
ContentContainer<T> replace(T content)
default <R extends T> R getRequired(String name) throws ConstraintViolationException
ConstraintViolationException