Package org.apache.hadoop.hdfs.util
Interface ReadOnlyList<E>
- Type Parameters:
E- The type of the list elements.
- All Superinterfaces:
Iterable<E>
A
ReadOnlyList is a unmodifiable list,
which supports read-only operations.-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
isEmpty
boolean isEmpty()Is this an empty list? -
size
int size()- Returns:
- the size of this list.
-
get
- Returns:
- the i-th element.
-