EmptyIterable is just that. Maybe just a touch better-performing than java.util.Collections#EMPTY_SET since we don't create a new Iterator every time iterator() is called. (Not sure why they do that....)
EmptyIterator, EmptyListIterable
| Modifier and Type | Field and Description |
|---|---|
| private static final Iterable | INSTANCE
The singleton instance of this |
| private static final long | serialVersionUID
The serial version UID of this class. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Iterable | |
| public Iterator | |
| private Object | |
| public String |
| INSTANCE | back to summary |
|---|---|
| private static final Iterable<Object> INSTANCE The singleton instance of this | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID The serial version UID of this class. | |
| EmptyIterable | back to summary |
|---|---|
| private EmptyIterable() Creates a new | |
| instance | back to summary |
|---|---|
| public static <T> Iterable Return the singleton instance of this
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |