Examples of containsKey()


Examples of com.google.api.services.drive.model.File.containsKey()

          Logging.connectors.debug("GOOGLEDRIVE: Processing document identifier '"
              + nodeId + "'");
        }

        File googleFile = getObject(nodeId);
        if (googleFile == null || (googleFile.containsKey("explicitlyTrashed") && googleFile.getExplicitlyTrashed())) {
          //its deleted, move on
          continue;
        }

View Full Code Here

Examples of com.google.api.services.oauth2.model.Tokeninfo.containsKey()

        };
        Tokeninfo tokenInfo = googleRequest.executeRequest(accessTokenContext, this);

        // If there was an error in the token info, abort.
        if (tokenInfo.containsKey("error")) {
            throw new OAuthException(OAuthExceptionCode.ACCESS_TOKEN_ERROR, "Error during token validation: " + tokenInfo.get("error").toString());
        }

        if (!tokenInfo.getIssuedTo().equals(clientID)) {
            throw new OAuthException(OAuthExceptionCode.ACCESS_TOKEN_ERROR, "Token's client ID does not match app's. clientID from tokenINFO: " + tokenInfo.getIssuedTo());
View Full Code Here

Examples of com.google.appengine.api.memcache.stdimpl.GCache.containsKey()

    try{
      GCacheFactory cacheFactory = (GCacheFactory) CacheManager.getInstance().getCacheFactory();
      cache = (GCache) cacheFactory.createCache(Collections.emptyMap());
      if(!cache.isEmpty())
      {
        if(cache.containsKey(strJID + "," + strProperty))
        {
          String value;
          value = (String) cache.get(strJID + "," + strProperty);
          if(value.length()>=1)
          {
View Full Code Here

Examples of com.google.gwt.json.client.JSONObject.containsKey()

            ApplicationConnection connection) {
        TranslatedURLReference reference = GWT
                .create(TranslatedURLReference.class);
        reference.setConnection(connection);
        JSONObject json = (JSONObject) jsonValue;
        if (json.containsKey(URL_FIELD)) {
            JSONValue jsonURL = json.get(URL_FIELD);
            String URL = (String) JsonDecoder.decodeValue(
                    new Type(String.class.getName(), null), jsonURL, null,
                    connection);
            reference.setURL(URL);
View Full Code Here

Examples of com.google.gwt.storage.client.StorageMap.containsKey()

   * @return
   */
  private static String getFromLocalStorage(String key) {
    StorageMap storageMap = getStorageMap();
    String domain = Helper.getCurrentHost();
    if (storageMap.containsKey(domain + "_" + key)) {
      return storageMap.get(domain + "_" + key);
    } else if (storageMap.containsKey(key)) {
      //for backwards compatability (i.e. the time when we didnt use the basedomain as part of the key)
      String value = storageMap.get(key);
      storeInLocalStorage(key, value); //settings it again stores it under correct key with domain name
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteBooleanMap.containsKey()

        ByteBooleanMap map = (ByteBooleanMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1);
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteByteMap.containsKey()

        ByteByteMap map = (ByteByteMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1);
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteCharMap.containsKey()

        ByteCharMap map = (ByteCharMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1);
    }

    @Override
    public int hashCode()
    {
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteDoubleMap.containsKey()

            return false;
        }

        if (this.sentinelValues == null)
        {
            if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY))
            {
                return false;
            }
        }
        else
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteFloatMap.containsKey()

        ByteFloatMap map = (ByteFloatMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && Float.compare(this.value1, map.getOrThrow(this.key1)) == 0;
    }

    @Override
    public int hashCode()
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.