|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.beans.autowired.AutowiredContainerDecorator<E>
E - public class AutowiredContainerDecorator<E>
Decorator for an AutowiredContainer
| Field Summary | |
|---|---|
protected AutowiredContainer<E> |
autowiredContainer
|
| Constructor Summary | |
|---|---|
protected |
AutowiredContainerDecorator()
|
|
AutowiredContainerDecorator(AutowiredContainer<E> autowiredContainer)
|
| Method Summary | ||
|---|---|---|
|
containsAssignable(Class<O> type)
Returns true if the current container contains any type which can be assigned to the given one. |
|
boolean |
equals(Object obj)
|
|
protected AutowiredContainer<E> |
getAutowiredContainer()
|
|
|
getValue(Class<? extends O> type)
Returns the value which can be assigned as value to the given Class type. |
|
|
getValueSet(Class<? extends O> type)
Returns a Set for all values which can be assigned to the given Class. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
Returns true if there are no elements within this container. |
|
Iterator<E> |
iterator()
|
|
AutowiredContainer<E> |
put(E object)
Adds an Object to the AutowiredContainer using its Object.getClass() as primary type. |
|
|
put(O object,
Class<? extends O>... types)
Adds an Object to the AutowiredContainer for one or more given Class types. |
|
AutowiredContainer<E> |
putAll(Iterable<E> iterable)
Adds multiple Objects to the AutowiredContainer. |
|
|
remove(O object)
Removes the given element from the AutowiredContainer |
|
AutowiredContainer<E> |
removeAllAssignableTo(Class<? extends E> type)
Removes all elements within the AutowiredContainer which are Class.isAssignableFrom(Class) to the given type. |
|
AutowiredContainer<E> |
removeAllHavingExactTypeOf(Class<? extends E> type)
Removes all elements within the AutowiredContainer which are put into the container with the given primary type. |
|
protected void |
setAutowiredContainer(AutowiredContainer<E> autowiredContainer)
|
|
int |
size()
Returns the size of the AutowiredContainer |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected AutowiredContainer<E> autowiredContainer
| Constructor Detail |
|---|
public AutowiredContainerDecorator(AutowiredContainer<E> autowiredContainer)
autowiredContainer - AutowiredContainerDecoratorprotected AutowiredContainerDecorator()
AutowiredContainerDecorator| Method Detail |
|---|
public Iterator<E> iterator()
iterator in interface Iterable<E>Iterable.iterator()public <O extends E> O getValue(Class<? extends O> type)
AutowiredContainerClass type. If there are multiple values available with
fitting types null is returned.
getValue in interface AutowiredContainer<E>type -
AutowiredContainer.getValue(java.lang.Class)public <O extends E> Set<O> getValueSet(Class<? extends O> type)
AutowiredContainerSet for all values which can be assigned to the given Class.
getValueSet in interface AutowiredContainer<E>type -
AutowiredContainer.getValueSet(java.lang.Class)public <O extends E> boolean containsAssignable(Class<O> type)
AutowiredContainer
containsAssignable in interface AutowiredContainer<E>type -
AutowiredContainer.containsAssignable(java.lang.Class)public boolean isEmpty()
AutowiredContainer
isEmpty in interface AutowiredContainer<E>AutowiredContainer.isEmpty()public AutowiredContainer<E> put(E object)
AutowiredContainerObject to the AutowiredContainer using its Object.getClass() as primary type.
put in interface AutowiredContainer<E>object -
AutowiredContainer.put(java.lang.Object)public AutowiredContainer<E> putAll(Iterable<E> iterable)
AutowiredContainerObjects to the AutowiredContainer.
putAll in interface AutowiredContainer<E>iterable -
AutowiredContainer.putAll(java.lang.Iterable)
public <O extends E> AutowiredContainer<E> put(O object,
Class<? extends O>... types)
AutowiredContainerObject to the AutowiredContainer for one or more given Class types.
put in interface AutowiredContainer<E>object - types -
org.omnaest.utils.beans.autowired.AutowiredContainer#put(java.lang.Object, java.lang.Class extends O>[])public <O extends E> AutowiredContainer<E> remove(O object)
AutowiredContainerAutowiredContainer
remove in interface AutowiredContainer<E>object -
AutowiredContainer.remove(java.lang.Object)public AutowiredContainer<E> removeAllHavingExactTypeOf(Class<? extends E> type)
AutowiredContainerAutowiredContainer which are put into the container with the given primary type.
removeAllHavingExactTypeOf in interface AutowiredContainer<E>type -
AutowiredContainer.removeAllHavingExactTypeOf(java.lang.Class)public String toString()
toString in class Objectprotected AutowiredContainer<E> getAutowiredContainer()
protected void setAutowiredContainer(AutowiredContainer<E> autowiredContainer)
autowiredContainer - the autowiredContainer to setpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int size()
AutowiredContainerAutowiredContainer
size in interface AutowiredContainer<E>AutowiredContainer.size()public AutowiredContainer<E> removeAllAssignableTo(Class<? extends E> type)
AutowiredContainerAutowiredContainer which are Class.isAssignableFrom(Class) to the given type.
removeAllAssignableTo in interface AutowiredContainer<E>AutowiredContainer.removeAllHavingExactTypeOf(Class)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||