Class ChildIterableImpl<T>
- java.lang.Object
-
- org.glassfish.hk2.configuration.internal.ChildIterableImpl<T>
-
- All Implemented Interfaces:
Iterable<T>
,ChildIterable<T>
public class ChildIterableImpl<T> extends Object implements ChildIterable<T>
- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
byKey(String key)
Gets the child with the given key.Iterable<ServiceHandle<T>>
handleIterator()
Returns an iterator of the children's Service Handle, rather than their servicesIterator<T>
iterator()
-
-
-
Method Detail
-
byKey
public T byKey(String key)
Description copied from interface:ChildIterable
Gets the child with the given key. The separator used to determine the full suffix to look for in the child is given by theChildInject.separator()
field- Specified by:
byKey
in interfaceChildIterable<T>
- Parameters:
key
- The non-null key of the child to get- Returns:
- The child who has the given key
-
handleIterator
public Iterable<ServiceHandle<T>> handleIterator()
Description copied from interface:ChildIterable
Returns an iterator of the children's Service Handle, rather than their services- Specified by:
handleIterator
in interfaceChildIterable<T>
- Returns:
- the iterator
-
-