Build 1.0_r1(from source)

android.net
Class Uri.Part

java.lang.Object
  extended by android.net.Uri.AbstractPart
      extended by android.net.Uri.Part
Enclosing class:
Uri

static class Uri.Part
extends Uri.AbstractPart

Immutable wrapper of encoded and decoded versions of a URI part. Lazily creates the encoded or decoded version from the other.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.net.Uri.AbstractPart
Uri.AbstractPart.Representation
 
Field Summary
(package private) static Uri.Part EMPTY
          A part with empty strings for values.
(package private) static Uri.Part NULL
          A part with null values.
 
Fields inherited from class android.net.Uri.AbstractPart
decoded, encoded
 
Method Summary
(package private) static Uri.Part from(String encoded, String decoded)
          Creates a part from the encoded and decoded strings.
(package private) static Uri.Part fromDecoded(String decoded)
          Creates a part from the decoded string.
(package private) static Uri.Part fromEncoded(String encoded)
          Creates a part from the encoded string.
(package private)  String getEncoded()
           
(package private)  boolean isEmpty()
           
(package private) static Uri.Part nonNull(Uri.Part part)
          Returns given part or NULL if the given part is null.
(package private) static Uri.Part readFrom(Parcel parcel)
           
 
Methods inherited from class android.net.Uri.AbstractPart
getDecoded, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

static final Uri.Part NULL
A part with null values.


EMPTY

static final Uri.Part EMPTY
A part with empty strings for values.

Method Detail

isEmpty

boolean isEmpty()

getEncoded

String getEncoded()
Specified by:
getEncoded in class Uri.AbstractPart

readFrom

static Uri.Part readFrom(Parcel parcel)

nonNull

static Uri.Part nonNull(Uri.Part part)
Returns given part or NULL if the given part is null.


fromEncoded

static Uri.Part fromEncoded(String encoded)
Creates a part from the encoded string.

Parameters:
encoded - part string

fromDecoded

static Uri.Part fromDecoded(String decoded)
Creates a part from the decoded string.

Parameters:
decoded - part string

from

static Uri.Part from(String encoded,
                     String decoded)
Creates a part from the encoded and decoded strings.

Parameters:
encoded - part string
decoded - part string

Build 1.0_r1(from source)

Please submit a feedback, bug or feature