Build 1.0_r1(from source)

android.net
Class Uri.PathSegments

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<String>
          extended by 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.


Field Summary
(package private) static Uri.PathSegments EMPTY
           
(package private)  String[] segments
           
(package private)  int size
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Uri.PathSegments(String[] segments, int size)
           
 
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
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Field Detail

EMPTY

static final Uri.PathSegments EMPTY

segments

final String[] segments

size

final int size
Constructor Detail

Uri.PathSegments

Uri.PathSegments(String[] segments,
                 int size)
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature