T - the type of items in the iterable.public class LimitedCloseableIterable<T> extends Object implements CloseableIterable<T>
LimitedCloseableIterable is an Iterable which is limited to
a maximum size.| Constructor and Description |
|---|
LimitedCloseableIterable(CloseableIterable<T> iterable,
int start,
Integer end) |
LimitedCloseableIterable(CloseableIterable<T> iterable,
int start,
Integer end,
Boolean truncate) |
LimitedCloseableIterable(Iterable<T> iterable,
int start,
Integer end) |
LimitedCloseableIterable(Iterable<T> iterable,
int start,
Integer end,
Boolean truncate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Integer |
getEnd() |
int |
getStart() |
CloseableIterator<T> |
iterator() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LimitedCloseableIterable(Iterable<T> iterable, int start, Integer end)
public LimitedCloseableIterable(Iterable<T> iterable, int start, Integer end, Boolean truncate)
public LimitedCloseableIterable(CloseableIterable<T> iterable, int start, Integer end)
public LimitedCloseableIterable(CloseableIterable<T> iterable, int start, Integer end, Boolean truncate)
public int getStart()
public Integer getEnd()
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface CloseableIterable<T>public CloseableIterator<T> iterator()
Copyright © 2022. All rights reserved.