Iterable over values that match a specific type out of all available. The
"lazy" denomination is due to the fact that the next matching value is calculated on-the-fly every time
Iterator#hasNext() is called
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final Iterable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public Iterable | |
| public Iterator | |
| public static < Type if iterated element T> Iterable | Returns: Iterable whose Iterator selects only values matching the specific typeNote the matching values are not pre-calculated (hence the "lazy" denomination)
- i.e., the match is performed only when The source values - ignored if values, Class<T> nullThe (never @code null) type of values to select - any value whose type is assignable to this type
will be selected by the iterator. type)
|
| public String |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| values | back to summary |
|---|---|
| private final Iterable<?> values | |
| LazyMatchingTypeIterable | back to summary |
|---|---|
| public LazyMatchingTypeIterable(Iterable<?> values, Class<T> type) | |
| getType | back to summary |
|---|---|
| public Class | |
| getValues | back to summary |
|---|---|
| public Iterable | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| lazySelectMatchingTypes | back to summary |
|---|---|
public static <T> Iterable
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |