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>
BlobKey contains 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:
  • Constructor Details

    • BlobKey

      public BlobKey(String blobKey)
      Construct a new BlobKey with the specified key string.
      Throws:
      IllegalArgumentException - If the specified string was null.
  • Method Details

    • getKeyString

      public String getKeyString()
      Returns the blob key as a String.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object object)
      Two BlobKey objects are considered equal if they point to the same blobs.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(BlobKey o)
      Specified by:
      compareTo in interface Comparable<BlobKey>