Package org.apereo.cas.util.spring.beans
Class BeanContainer.ListBeanContainer<T>
- java.lang.Object
-
- org.apereo.cas.util.spring.beans.BeanContainer.ListBeanContainer<T>
-
- All Implemented Interfaces:
BeanContainer<T>
- Enclosing interface:
- BeanContainer<T>
public static class BeanContainer.ListBeanContainer<T> extends java.lang.Object implements BeanContainer<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apereo.cas.util.spring.beans.BeanContainer
BeanContainer.ListBeanContainer<T>
-
-
Constructor Summary
Constructors Constructor Description ListBeanContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanContainer<T>and(T entry)And include a single item..Tfirst()First entry in the container.intsize()Size.java.util.List<T>toList()Gets items.java.util.Set<T>toSet()To set set.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.util.spring.beans.BeanContainer
isEmpty
-
-
-
-
Method Detail
-
first
public T first()
Description copied from interface:BeanContainerFirst entry in the container.- Specified by:
firstin interfaceBeanContainer<T>- Returns:
- the entry
-
toList
public java.util.List<T> toList()
Description copied from interface:BeanContainerGets items.- Specified by:
toListin interfaceBeanContainer<T>- Returns:
- the items
-
and
@CanIgnoreReturnValue public BeanContainer<T> and(T entry)
Description copied from interface:BeanContainerAnd include a single item..- Specified by:
andin interfaceBeanContainer<T>- Parameters:
entry- the entry- Returns:
- the container bean
-
size
public int size()
Description copied from interface:BeanContainerSize.- Specified by:
sizein interfaceBeanContainer<T>- Returns:
- the int
-
toSet
public java.util.Set<T> toSet()
Description copied from interface:BeanContainerTo set set.- Specified by:
toSetin interfaceBeanContainer<T>- Returns:
- the set
-
-