|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.omnaest.utils.beans.autowired.AutowiredContainerAbstract<E>
E - public abstract class AutowiredContainerAbstract<E>
Abstract implementation for AutowiredContainer which reduces the number of methods to be implemented.
| Constructor Summary | |
|---|---|
AutowiredContainerAbstract()
|
|
| 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)
|
|
|
getValue(Class<? extends O> clazz)
Returns the value which can be assigned as value to the given Class type. |
|
int |
hashCode()
|
|
boolean |
isEmpty()
Returns true if there are no elements within this container. |
|
AutowiredContainer<E> |
putAll(Iterable<E> iterable)
Adds multiple Objects to the AutowiredContainer. |
|
|
remove(O object)
Removes the given element from the 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 |
| Methods inherited from interface org.omnaest.utils.beans.autowired.AutowiredContainer |
|---|
getValueSet, put, put, removeAllAssignableTo, removeAllHavingExactTypeOf |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Constructor Detail |
|---|
public AutowiredContainerAbstract()
| Method Detail |
|---|
public <O extends E> O getValue(Class<? extends O> clazz)
AutowiredContainerClass type. If there are multiple values available with
fitting types null is returned.
getValue in interface AutowiredContainer<E>public AutowiredContainer<E> putAll(Iterable<E> iterable)
AutowiredContainerObjects to the AutowiredContainer.
putAll in interface AutowiredContainer<E>AutowiredContainer.put(Object)public String toString()
toString in class Objectpublic <O extends E> boolean containsAssignable(Class<O> type)
AutowiredContainer
containsAssignable in interface AutowiredContainer<E>public boolean isEmpty()
AutowiredContainer
isEmpty in interface AutowiredContainer<E>public <O extends E> AutowiredContainer<E> remove(O object)
AutowiredContainerAutowiredContainer
remove in interface AutowiredContainer<E>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int size()
AutowiredContainerAutowiredContainer
size in interface AutowiredContainer<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||