android.net
Class Uri.PathSegments
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<String>
android.net.Uri.PathSegments
- All Implemented Interfaces:
- Iterable<String>, Collection<String>, List<String>, RandomAccess
- Enclosing class:
- Uri
static class Uri.PathSegments
- extends AbstractList<String>
- implements RandomAccess
Wrapper for path segment array.
|
Method Summary |
String |
get(int index)
Returns the element at the specified location in this List. |
int |
size()
Returns the number of elements in this Collection. |
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
EMPTY
static final Uri.PathSegments EMPTY
segments
final String[] segments
size
final int size
Uri.PathSegments
Uri.PathSegments(String[] segments,
int size)
get
public String get(int index)
- Description copied from class:
AbstractList
- Returns the element at the specified location in this List.
- Specified by:
get in interface List<String>- Specified by:
get in class AbstractList<String>
- Parameters:
index - the index of the element to return
- Returns:
- the element at the specified index
size
public int size()
- Description copied from class:
AbstractCollection
- Returns the number of elements in this Collection.
- Specified by:
size in interface Collection<String>- Specified by:
size in interface List<String>- Specified by:
size in class AbstractCollection<String>
- Returns:
- the number of elements in this Collection
Please submit a feedback, bug or feature