Package org.apereo.cas.util.spring.beans
Interface BeanContainer<T>
-
- All Known Implementing Classes:
BeanContainer.ListBeanContainer
public interface BeanContainer<T>This isBeanContainer.- Since:
- 6.5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classBeanContainer.ListBeanContainer<T>
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BeanContainer<T>and(T entry)And include a single item..static <T> BeanContainer<T>empty()Empty bean container.Tfirst()First entry in the container.default booleanisEmpty()Is container empty?static <T> BeanContainer<T>of(java.util.List<T> entries)Contain items in a list..static <T> BeanContainer<T>of(java.util.Set<T> entries)Of bean container.static <T> BeanContainer<T>of(T... entries)To list container bean.intsize()Size.java.util.List<T>toList()Gets items.java.util.Set<T>toSet()To set set.
-
-
-
Method Detail
-
of
static <T> BeanContainer<T> of(T... entries)
To list container bean.- Type Parameters:
T- the type parameter- Parameters:
entries- the entries- Returns:
- the container bean
-
of
static <T> BeanContainer<T> of(java.util.List<T> entries)
Contain items in a list..- Type Parameters:
T- the type parameter- Parameters:
entries- the entries- Returns:
- the bean container
-
of
static <T> BeanContainer<T> of(java.util.Set<T> entries)
Of bean container.- Type Parameters:
T- the type parameter- Parameters:
entries- the entries- Returns:
- the bean container
-
empty
static <T> BeanContainer<T> empty()
Empty bean container.- Type Parameters:
T- the type parameter- Returns:
- the bean container
-
toList
java.util.List<T> toList()
Gets items.- Returns:
- the items
-
toSet
java.util.Set<T> toSet()
To set set.- Returns:
- the set
-
and
BeanContainer<T> and(T entry)
And include a single item..- Parameters:
entry- the entry- Returns:
- the container bean
-
size
int size()
Size.- Returns:
- the int
-
first
T first()
First entry in the container.- Returns:
- the entry
-
isEmpty
default boolean isEmpty()
Is container empty?- Returns:
- the boolean
-
-