public int hashCode() {
   int result = myExtensionMappings.hashCode();
   result = 31 * result + myMatchingMappings.hashCode();
   result = 31 * result + myExactFileNameMappings.hashCode();
   result = 31 * result + myExactFileNameAnyCaseMappings.hashCode();
   return result;
 }
 @Override
 public int hashCode() {
   int result = wordIndex != null ? wordIndex.hashCode() : 0;
   result = 31 * result + (wordFrequencies != null ? wordFrequencies.hashCode() : 0);
   result = 31 * result + (docFrequencies != null ? docFrequencies.hashCode() : 0);
   result = 31 * result + (vocabs != null ? vocabs.hashCode() : 0);
   result = 31 * result + (tokens != null ? tokens.hashCode() : 0);
   result = 31 * result + (totalWordOccurrences != null ? totalWordOccurrences.hashCode() : 0);
   result = 31 * result + numDocs;
   return result;
 }
Exemplo n.º 3
1
  @Override
  public int hashCode() {
    int result = (ObjectUtils.isNotNull(url) ? url.hashCode() : 0);
    result = 31 * result + method.hashCode();
    result = 31 * result + (ObjectUtils.isNotNull(post) ? post.hashCode() : 0);
    result =
        31 * result
            + (ObjectUtils.isNotNull(fileBytes) && fileBytes.length != 0
                ? Arrays.hashCode(fileBytes)
                : 0);
    result = 31 * result + headers.hashCode();
    result = 31 * result + query.hashCode();

    return result;
  }
Exemplo n.º 4
1
 @Override
 public int hashCode() {
   int result = fields != null ? fields.hashCode() : 0;
   result = 31 * result + (type != null ? type.hashCode() : 0);
   result = 31 * result + (connections != null ? connections.hashCode() : 0);
   return result;
 }
Exemplo n.º 5
1
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((cachedQuery == null) ? 0 : cachedQuery.hashCode());
   result = prime * result + ((dbPath == null) ? 0 : dbPath.hashCode());
   result = prime * result + (descending ? 1231 : 1237);
   result = prime * result + ((designDocId == null) ? 0 : designDocId.hashCode());
   result = prime * result + ((endDocId == null) ? 0 : endDocId.hashCode());
   result = prime * result + ((endKey == null) ? 0 : endKey.hashCode());
   result = prime * result + (group ? 1231 : 1237);
   result = prime * result + groupLevel;
   result = prime * result + (ignoreNotFound ? 1231 : 1237);
   result = prime * result + (includeDocs ? 1231 : 1237);
   result = prime * result + (inclusiveEnd ? 1231 : 1237);
   result = prime * result + ((key == null) ? 0 : key.hashCode());
   result = prime * result + limit;
   result = prime * result + ((listName == null) ? 0 : listName.hashCode());
   result = prime * result + ((queryParams == null) ? 0 : queryParams.hashCode());
   result = prime * result + (reduce ? 1231 : 1237);
   result = prime * result + skip;
   result = prime * result + ((staleOk == null) ? 0 : staleOk.hashCode());
   result = prime * result + ((startDocId == null) ? 0 : startDocId.hashCode());
   result = prime * result + ((startKey == null) ? 0 : startKey.hashCode());
   result = prime * result + ((viewName == null) ? 0 : viewName.hashCode());
   return result;
 }
Exemplo n.º 6
1
 @Override
 public int hashCode() {
   int result = pluginJar.hashCode();
   result = 31 * result + (pluginProviderDefs != null ? pluginProviderDefs.hashCode() : 0);
   result = 31 * result + (mainAttributes != null ? mainAttributes.hashCode() : 0);
   result = 31 * result + (classCache != null ? classCache.hashCode() : 0);
   return result;
 }
Exemplo n.º 7
0
 public int hashCode() {
   boolean wasInterrupted = beforeRead();
   try {
     return c_.hashCode();
   } finally {
     afterRead(wasInterrupted);
   }
 }
Exemplo n.º 8
0
 @Override
 public int hashCode() {
   int result = (debug ? 1 : 0);
   result = 31 * result + (userAgent != null ? userAgent.hashCode() : 0);
   result = 31 * result + (user != null ? user.hashCode() : 0);
   result = 31 * result + (password != null ? password.hashCode() : 0);
   result = 31 * result + (useSSL ? 1 : 0);
   result = 31 * result + (prettyDebug ? 1 : 0);
   result = 31 * result + (gzipEnabled ? 1 : 0);
   result = 31 * result + (httpProxyHost != null ? httpProxyHost.hashCode() : 0);
   result = 31 * result + (httpProxyUser != null ? httpProxyUser.hashCode() : 0);
   result = 31 * result + (httpProxyPassword != null ? httpProxyPassword.hashCode() : 0);
   result = 31 * result + httpProxyPort;
   result = 31 * result + httpConnectionTimeout;
   result = 31 * result + httpReadTimeout;
   result = 31 * result + httpStreamingReadTimeout;
   result = 31 * result + httpRetryCount;
   result = 31 * result + httpRetryIntervalSeconds;
   result = 31 * result + maxTotalConnections;
   result = 31 * result + defaultMaxPerRoute;
   result = 31 * result + (oAuthConsumerKey != null ? oAuthConsumerKey.hashCode() : 0);
   result = 31 * result + (oAuthConsumerSecret != null ? oAuthConsumerSecret.hashCode() : 0);
   result = 31 * result + (oAuthAccessToken != null ? oAuthAccessToken.hashCode() : 0);
   result = 31 * result + (oAuthAccessTokenSecret != null ? oAuthAccessTokenSecret.hashCode() : 0);
   result = 31 * result + (oAuthRequestTokenURL != null ? oAuthRequestTokenURL.hashCode() : 0);
   result = 31 * result + (oAuthAuthorizationURL != null ? oAuthAuthorizationURL.hashCode() : 0);
   result = 31 * result + (oAuthAccessTokenURL != null ? oAuthAccessTokenURL.hashCode() : 0);
   result = 31 * result + (oAuthAuthenticationURL != null ? oAuthAuthenticationURL.hashCode() : 0);
   result = 31 * result + (restBaseURL != null ? restBaseURL.hashCode() : 0);
   result = 31 * result + (searchBaseURL != null ? searchBaseURL.hashCode() : 0);
   result = 31 * result + (streamBaseURL != null ? streamBaseURL.hashCode() : 0);
   result = 31 * result + (userStreamBaseURL != null ? userStreamBaseURL.hashCode() : 0);
   result = 31 * result + (siteStreamBaseURL != null ? siteStreamBaseURL.hashCode() : 0);
   result = 31 * result + (uploadBaseURL != null ? uploadBaseURL.hashCode() : 0);
   result = 31 * result + (dispatcherImpl != null ? dispatcherImpl.hashCode() : 0);
   result = 31 * result + asyncNumThreads;
   result = 31 * result + (includeRTsEnabled ? 1 : 0);
   result = 31 * result + (includeEntitiesEnabled ? 1 : 0);
   result = 31 * result + (jsonStoreEnabled ? 1 : 0);
   result = 31 * result + (mbeanEnabled ? 1 : 0);
   result = 31 * result + (userStreamRepliesAllEnabled ? 1 : 0);
   result = 31 * result + (mediaProvider != null ? mediaProvider.hashCode() : 0);
   result = 31 * result + (mediaProviderAPIKey != null ? mediaProviderAPIKey.hashCode() : 0);
   result =
       31 * result + (mediaProviderParameters != null ? mediaProviderParameters.hashCode() : 0);
   result = 31 * result + (clientVersion != null ? clientVersion.hashCode() : 0);
   result = 31 * result + (clientURL != null ? clientURL.hashCode() : 0);
   result = 31 * result + (IS_DALVIK ? 1 : 0);
   result = 31 * result + (IS_GAE ? 1 : 0);
   result = 31 * result + (requestHeaders != null ? requestHeaders.hashCode() : 0);
   return result;
 }
Exemplo n.º 9
0
 @Override
 public int hashCode() {
   int result = url.hashCode();
   result = 31 * result + (suffix != null ? suffix.hashCode() : 0);
   result = 31 * result + params.hashCode();
   result = 31 * result + (saveInCache ? 1 : 0);
   result = 31 * result + (archiveResult ? 1 : 0);
   result = 31 * result + (withParams ? 1 : 0);
   result = 31 * result + (encoding != null ? encoding.hashCode() : 0);
   result = 31 * result + (content != null ? content.hashCode() : 0);
   result = 31 * result + headers.hashCode();
   result = 31 * result + method.hashCode();
   return result;
 }
 public int hashCode() {
   return delegate.hashCode();
 }
 public String getId() {
   return Integer.toString(sessionAttributesMap.hashCode());
 }
Exemplo n.º 12
0
 public int hashCode() {
   return fields.hashCode();
 }
 public int hashCode() {
   int result = super.hashCode();
   result = 31 * result + myClassName.hashCode();
   result = 31 * result + myParameterMap.hashCode();
   return result;
 }
Exemplo n.º 14
0
 public int hashCode() {
   return (initStatus.hashCode());
 }
Exemplo n.º 15
0
 public int hashCode() {
   int result = tag.hashCode();
   result = 29 * result + attributes.hashCode();
   return result;
 }
Exemplo n.º 16
0
 @Override
 public int hashCode() {
   int result = old.hashCode();
   result = 31 * result + young.hashCode();
   return result;
 }
Exemplo n.º 17
0
 public int hashCode() {
   return m_entries.hashCode();
 }
 public int hashCode() {
   return mySubstitutionMap != null ? mySubstitutionMap.hashCode() : 0;
 }
Exemplo n.º 19
0
 public int hashCode() {
   buildIfNeeded();
   return map.hashCode();
 }
Exemplo n.º 20
0
 public int hashCode() {
   int result = name != null ? name.hashCode() : 0;
   result = 31 * result + (values != null ? values.hashCode() : 0);
   return result;
 }
Exemplo n.º 21
0
 public int hashCode() {
   int result = myName != null ? myName.hashCode() : 0;
   result = 31 * result + (myRoots != null ? myRoots.hashCode() : 0);
   result = 31 * result + (myJarDirectories != null ? myJarDirectories.hashCode() : 0);
   return result;
 }
Exemplo n.º 22
0
 @Override
 public int hashCode() {
   return resources != null ? resources.hashCode() : 0;
 }
Exemplo n.º 23
0
 @Override
 public int hashCode() {
   int result = objects.hashCode();
   result = 31 * result + indexes.hashCode();
   return result;
 }
Exemplo n.º 24
0
 /*@Pure*/ public int hashCode() {
   return map.hashCode();
 }
Exemplo n.º 25
0
  static void twoMapTest2(Map s, Object[] key, Object[] absent) {
    int size = key.length;

    Map s2 = newMap();
    putAllTest("Add    Absent          ", size, s, s2);
    putAllTest("Modify Present         ", size, s, s2);

    Object lastkey = kitTest(s2, size);
    Object hold = s2.get(lastkey);
    int sum = 0;

    timer.start("Traverse entry         ", size * 12); // 12 until finish

    int sh1 = s.hashCode() - s2.hashCode();
    reallyAssert(sh1 == 0);

    boolean eq1 = s2.equals(s);
    boolean eq2 = s.equals(s2);
    reallyAssert(eq1 && eq2);

    Set es2 = s2.entrySet();
    for (Iterator it = s.entrySet().iterator(); it.hasNext(); ) {
      Object entry = it.next();
      if (es2.contains(entry)) ++sum;
    }
    reallyAssert(sum == size);

    s2.put(lastkey, MISSING);

    int sh2 = s.hashCode() - s2.hashCode();
    reallyAssert(sh2 != 0);

    eq1 = s2.equals(s);
    eq2 = s.equals(s2);
    reallyAssert(!eq1 && !eq2);

    sum = 0;
    for (Iterator it = s.entrySet().iterator(); it.hasNext(); ) {
      Map.Entry e = (Map.Entry) it.next();
      e.setValue(absent[sum++]);
    }
    reallyAssert(sum == size);
    for (Iterator it = s2.entrySet().iterator(); it.hasNext(); ) {
      Map.Entry e = (Map.Entry) it.next();
      e.setValue(s.get(e.getKey()));
    }

    timer.finish();

    int rmiss = 0;
    timer.start("Remove Present         ", size * 2);
    Iterator s2i = s2.entrySet().iterator();
    Set es = s.entrySet();
    while (s2i.hasNext()) {
      if (!es.remove(s2i.next())) ++rmiss;
    }
    timer.finish();
    reallyAssert(rmiss == 0);

    clrTest(size, s2);
    reallyAssert(s2.isEmpty() && s.isEmpty());
  }
Exemplo n.º 26
0
 @Override
 public int hashCode() {
   return map.hashCode();
 }