Tabnine Logo
Set.hashCode
Code IndexAdd Tabnine to your IDE (free)

How to use
hashCode
method
in
java.util.Set

Best Java code snippets using java.util.Set.hashCode (Showing top 20 results out of 9,135)

Refine searchRefine arrow

  • List.hashCode
origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = dimensions.hashCode();
 result = 31 * result + dimensionExclusions.hashCode();
 return result;
}
origin: apache/incubator-druid

@Override
public int hashCode()
{
 int result = pagingIdentifiers != null ? pagingIdentifiers.hashCode() : 0;
 result = 31 * result + (dimensions != null ? dimensions.hashCode() : 0);
 result = 31 * result + (metrics != null ? metrics.hashCode() : 0);
 result = 31 * result + (events != null ? events.hashCode() : 0);
 return result;
}
origin: robolectric/robolectric

@Override
public int hashCode() {
 if (cachedHashCode != 0) {
  return cachedHashCode;
 }
 int result = instrumentedPackages.hashCode();
 result = 31 * result + instrumentedClasses.hashCode();
 result = 31 * result + classNameTranslations.hashCode();
 result = 31 * result + interceptedMethods.hashCode();
 result = 31 * result + classesToNotAcquire.hashCode();
 cachedHashCode = result;
 return result;
}
origin: airbnb/epoxy

 @Override
 public int hashCode() {
  int result = name != null ? name.hashCode() : 0;
  result = 31 * result + (modifiers != null ? modifiers.hashCode() : 0);
  result = 31 * result + (params != null ? params.hashCode() : 0);
  result = 31 * result + (varargs ? 1 : 0);
  return result;
 }
}
origin: apache/kylin

public int calculateNonFilterHashCode() {
  int result = sqlDigest.factTable != null ? sqlDigest.factTable.hashCode() : 0;
  result = 31 * result + (sqlDigest.joinDescs != null ? sqlDigest.joinDescs.hashCode() : 0);
  result = 31 * result + (sqlDigest.allColumns != null ? sqlDigest.allColumns.hashCode() : 0);
  result = 31 * result + (sqlDigest.groupbyColumns != null ? sqlDigest.groupbyColumns.hashCode() : 0);
  result = 31 * result + (sqlDigest.filterColumns != null ? sqlDigest.filterColumns.hashCode() : 0);
  result = 31 * result + (sqlDigest.metricColumns != null ? sqlDigest.metricColumns.hashCode() : 0);
  result = 31 * result + (sqlDigest.aggregations != null ? sqlDigest.aggregations.hashCode() : 0);
  return result;
}
origin: apache/geode

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + (checkPortability ? 1231 : 1237);
 result = prime * result + ((classPatterns == null) ? 0 : classPatterns.hashCode());
 result = prime * result + ((excludePatterns == null) ? 0 : excludePatterns.hashCode());
 result = prime * result + ((identityPatterns == null) ? 0 : identityPatterns.hashCode());
 return result;
}
origin: jersey/jersey

  @Override
  public int hashCode() {
    int result = type.hashCode();
    result = 31 * result + properties.hashCode();
    result = 31 * result + componentBag.hashCode();
    result = 31 * result + newFeatureRegistrations.hashCode();
    result = 31 * result + enabledFeatures.hashCode();
    result = 31 * result + enabledFeatureClasses.hashCode();
    return result;
  }
}
origin: jersey/jersey

  @Override
  public int hashCode() {
    int result = type.hashCode();
    result = 31 * result + properties.hashCode();
    result = 31 * result + componentBag.hashCode();
    result = 31 * result + newFeatureRegistrations.hashCode();
    result = 31 * result + enabledFeatures.hashCode();
    result = 31 * result + enabledFeatureClasses.hashCode();
    return result;
  }
}
origin: spring-projects/spring-security-oauth

        : refreshTokenValiditySeconds);
result = prime * result
    + ((authorities == null) ? 0 : authorities.hashCode());
result = prime
        .hashCode());
result = prime * result
    + ((clientId == null) ? 0 : clientId.hashCode());
        : registeredRedirectUris.hashCode());
result = prime * result
    + ((resourceIds == null) ? 0 : resourceIds.hashCode());
result = prime * result + ((scope == null) ? 0 : scope.hashCode());
result = prime * result + ((additionalInformation == null) ? 0 : additionalInformation.hashCode());
return result;
origin: aws/aws-sdk-java

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((owner == null) ? 0 : owner.hashCode());
  result = prime * result + ((grantSet == null) ? 0 : grantSet.hashCode());
  result = prime * result + ((grantList == null) ? 0 : grantList.hashCode());
  return result;
}
origin: hibernate/hibernate-orm

public NativeSQLQuerySpecification(
    String queryString,
    NativeSQLQueryReturn[] queryReturns,
    Collection querySpaces) {
  this.queryString = queryString;
  this.queryReturns = queryReturns;
  if ( querySpaces == null ) {
    this.querySpaces = Collections.EMPTY_SET;
  }
  else {
    Set tmp = new HashSet();
    tmp.addAll( querySpaces );
    this.querySpaces = Collections.unmodifiableSet( tmp );
  }
  // pre-determine and cache the hashcode
  int hashCode = queryString.hashCode();
  hashCode = 29 * hashCode + this.querySpaces.hashCode();
  if ( this.queryReturns != null ) {
    hashCode = 29 * hashCode + ArrayHelper.toList( this.queryReturns ).hashCode();
  }
  this.hashCode = hashCode;
}
origin: geoserver/geoserver

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((defaultStyle == null) ? 0 : defaultStyle.hashCode());
  result = prime * result + ((id == null) ? 0 : id.hashCode());
  result = prime * result + ((legend == null) ? 0 : legend.hashCode());
  // TODO: add back when resource publish split is in place
  // result = prime * result + ((name == null) ? 0 : name.hashCode());
  result = prime * result + ((path == null) ? 0 : path.hashCode());
  result = prime * result + ((resource == null) ? 0 : resource.hashCode());
  result = prime * result + ((styles == null) ? 0 : styles.hashCode());
  result = prime * result + ((type == null) ? 0 : type.hashCode());
  result = prime * result + ((attribution == null) ? 0 : attribution.hashCode());
  result = prime * result + ((authorityURLs == null) ? 0 : authorityURLs.hashCode());
  result = prime * result + ((identifiers == null) ? 0 : identifiers.hashCode());
  return result;
}
origin: protostuff/protostuff

@Override
public int hashCode()
{
  int result = list != null ? list.hashCode() : 0;
  result = 31 * result + (map != null ? map.hashCode() : 0);
  result = 31 * result + (set != null ? set.hashCode() : 0);
  return result;
}
origin: apache/incubator-druid

 @Override
 public int hashCode()
 {
  int result = getName() != null ? getName().hashCode() : 0;
  result = 31 * result + (getUsers() != null ? getUsers().hashCode() : 0);
  result = 31 * result + (getPermissions() != null ? getPermissions().hashCode() : 0);
  return result;
 }
}
origin: wildfly/wildfly

@Override
public int hashCode() {
  int result = getTemplateString() != null ? getTemplateString().hashCode() : 0;
  result = 31 * result + (template ? 1 : 0);
  result = 31 * result + (getBase() != null ? getBase().hashCode() : 0);
  result = 31 * result + (parts != null ? parts.hashCode() : 0);
  result = 31 * result + (getParameterNames() != null ? getParameterNames().hashCode() : 0);
  return result;
}
origin: geoserver/geoserver

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + (isConstant() ? 1231 : 1237);
  result = prime * result + (isAllowSessionCreation() ? 17 : 19);
  result = prime * result + (isDisabled() ? 23 : 29);
  result = prime * result + (isRequireSSL() ? 31 : 37);
  result = prime * result + (isMatchHTTPMethod() ? 41 : 49);
  result = prime * ((roleFilterName == null) ? 1 : roleFilterName.hashCode());
  result = prime * result + ((httpMethods == null) ? 0 : httpMethods.hashCode());
  result = prime * result + ((filterNames == null) ? 0 : filterNames.hashCode());
  result = prime * result + ((name == null) ? 0 : name.hashCode());
  result = prime * result + ((patterns == null) ? 0 : patterns.hashCode());
  return result;
}
origin: MorphiaOrg/morphia

  @Override
  public int hashCode() {
    int result = id != null ? id.hashCode() : 0;
    result = 31 * result + Arrays.hashCode(arrayOfStrings);
    result = 31 * result + Arrays.hashCode(arrayOfInts);
    result = 31 * result + (listOfStrings != null ? listOfStrings.hashCode() : 0);
    result = 31 * result + (listOfIntegers != null ? listOfIntegers.hashCode() : 0);
    result = 31 * result + (arrayListOfStrings != null ? arrayListOfStrings.hashCode() : 0);
    result = 31 * result + (arrayListOfIntegers != null ? arrayListOfIntegers.hashCode() : 0);
    result = 31 * result + (listEmbeddedType != null ? listEmbeddedType.hashCode() : 0);
    result = 31 * result + (setOfIntegers != null ? setOfIntegers.hashCode() : 0);
    result = 31 * result + (notAnArrayOrList != null ? notAnArrayOrList.hashCode() : 0);
    return result;
  }
}
origin: protostuff/protostuff

result = prime * result
    + ((linkedList == null) ? 0 : linkedList.hashCode());
result = prime * result + ((list == null) ? 0 : list.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());
result = prime * result
    + ((priorityQueue == null) ? 0 : priorityQueue.hashCode());
result = prime * result + ((queue == null) ? 0 : queue.hashCode());
result = prime * result + ((set == null) ? 0 : set.hashCode());
result = prime * result
    + ((sortedSet == null) ? 0 : sortedSet.hashCode());
origin: apache/phoenix

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + children.hashCode() + values.hashCode();
  return result;
}
origin: line/armeria

@Override
public int hashCode() {
 int hashCode = 1;
 hashCode = hashCode * 8191 + ((isSetFoo1()) ? 131071 : 524287);
 if (isSetFoo1())
  hashCode = hashCode * 8191 + foo1.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo2()) ? 131071 : 524287);
 if (isSetFoo2())
  hashCode = hashCode * 8191 + foo2.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo3()) ? 131071 : 524287);
 if (isSetFoo3())
  hashCode = hashCode * 8191 + foo3.getValue();
 hashCode = hashCode * 8191 + ((isSetFoo4()) ? 131071 : 524287);
 if (isSetFoo4())
  hashCode = hashCode * 8191 + foo4.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo5()) ? 131071 : 524287);
 if (isSetFoo5())
  hashCode = hashCode * 8191 + foo5.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo6()) ? 131071 : 524287);
 if (isSetFoo6())
  hashCode = hashCode * 8191 + foo6.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo7()) ? 131071 : 524287);
 if (isSetFoo7())
  hashCode = hashCode * 8191 + foo7.hashCode();
 hashCode = hashCode * 8191 + ((isSetFoo8()) ? 131071 : 524287);
 if (isSetFoo8())
  hashCode = hashCode * 8191 + foo8.hashCode();
 return hashCode;
}
java.utilSethashCode

Javadoc

Returns the hash code for this set. Two set which are equal must return the same value.

Popular methods of Set

  • add
    Adds the specified element to this set if it is not already present (optional operation). More forma
  • contains
    Returns true if this set contains the specified element. More formally, returns true if and only if
  • iterator
  • size
  • isEmpty
    Returns true if this set contains no elements.
  • addAll
    Adds all of the elements in the specified collection to this set if they're not already present (opt
  • remove
    Removes the specified element from this set if it is present (optional operation). More formally, re
  • toArray
    Returns an array containing all of the elements in this set; the runtime type of the returned array
  • stream
  • clear
    Removes all of the elements from this set (optional operation). The set will be empty after this cal
  • removeAll
    Removes from this set all of its elements that are contained in the specified collection (optional o
  • forEach
  • removeAll,
  • forEach,
  • equals,
  • containsAll,
  • retainAll,
  • removeIf,
  • parallelStream,
  • spliterator,
  • of

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • String (java.lang)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now