Class BlobKey
- java.lang.Object
-
- com.google.appengine.api.blobstore.BlobKey
-
- All Implemented Interfaces:
Serializable,Comparable<BlobKey>
public final class BlobKey extends Object implements Serializable, Comparable<BlobKey>
BlobKeycontains the string identifier of a large (possibly larger than 1MB) blob of binary data that was uploaded in a previous request and can be streamed directly to users.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BlobKey o)booleanequals(@Nullable Object object)TwoBlobKeyobjects are considered equal if they point to the same blobs.StringgetKeyString()Returns the blob key as a String.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
BlobKey
public BlobKey(String blobKey)
Construct a newBlobKeywith the specified key string.- Throws:
IllegalArgumentException- If the specified string was null.
-
-
Method Detail
-
getKeyString
public String getKeyString()
Returns the blob key as a String.
-
equals
public boolean equals(@Nullable Object object)
TwoBlobKeyobjects are considered equal if they point to the same blobs.
-
compareTo
public int compareTo(BlobKey o)
- Specified by:
compareToin interfaceComparable<BlobKey>
-
-