Пример #1
0
 @Override
 public int hashCode() {
   if (IPV4_LEN == lsAttrLength) {
     return Objects.hash(ip4RouterId);
   } else {
     return Objects.hash(ip6RouterId);
   }
 }
Пример #2
0
  private static int testHash() {
    int errors = 0;

    Object[] data = new String[] {"perfect", "ham", "THC"};

    errors += ((Objects.hash((Object[]) null) == 0) ? 0 : 1);

    errors += (Objects.hash("perfect", "ham", "THC") == Arrays.hashCode(data)) ? 0 : 1;

    return errors;
  }
Пример #3
0
 @Override
 public int hashCode() {
   return Objects.hash(
       id,
       _lunConnections,
       lunMapping,
       physicalVolumeId,
       deviceSize,
       pvSize,
       discardMaxSize,
       discardZeroesData,
       lunType,
       pathsDictionary,
       pathsCapacity,
       vendorName,
       productId,
       serial,
       vendorId,
       volumeGroupId,
       status,
       diskId,
       diskAlias,
       storageDomainId,
       storageDomainName);
 }
Пример #4
0
 @Override
 public int hashCode() {
   return Objects.hash(
       name,
       tabLabel,
       font,
       bold,
       italic,
       underline,
       fontColor,
       fontSize,
       documentId,
       recipientId,
       pageNumber,
       xPosition,
       yPosition,
       anchorString,
       anchorXOffset,
       anchorYOffset,
       anchorUnits,
       anchorIgnoreIfNotPresent,
       anchorCaseSensitive,
       anchorMatchWholeWord,
       anchorHorizontalAlignment,
       tabId,
       templateLocked,
       templateRequired,
       conditionalParentLabel,
       conditionalParentValue,
       customTabId,
       mergeField,
       status,
       errorDetails);
 }
Пример #5
0
 @Override
 public int hashCode() {
   if (hashCode == -1) {
     hashCode = Objects.hash(relativeIndices); // toString().hashCode();
   }
   return hashCode;
 }
 @Override
 public int hashCode() {
   return Objects.hash(
       aggregations,
       explain,
       fetchSourceContext,
       fieldDataFields,
       fieldNames,
       from,
       highlightBuilder,
       indexBoost,
       innerHitsBuilder,
       minScore,
       postQueryBuilder,
       queryBuilder,
       rescoreBuilders,
       scriptFields,
       size,
       sorts,
       stats,
       suggestBuilder,
       terminateAfter,
       timeoutInMillis,
       trackScores,
       version);
 }
Пример #7
0
 @Override
 public int hashCode() {
   return Objects.hash(
       id,
       name,
       parentPath,
       displayName,
       type,
       valid,
       modifier,
       creator,
       owner,
       createdTime,
       modifiedTime,
       hasChildren,
       inheritPermissions,
       childOrder,
       thumbnail,
       permissions,
       attachments,
       data,
       extraDatas,
       page,
       language,
       contentState);
 }
Пример #8
0
 @Override
 public int hashCode() {
   int result = hashCode;
   if (result == 0) {
     // Because in equals, we compare ignoring case, we must convert the Strings to upper case
     // here so that the hash code will be the same if Strings are equal ignoring case.
     result =
         Objects.hash(
             lastName.toUpperCase(),
             firstName.toUpperCase(),
             (title == null ? title : title.toUpperCase()),
             (titleCourtesy == null ? titleCourtesy : titleCourtesy.toUpperCase()),
             birthDate,
             hireDate,
             (address == null ? address : address.toUpperCase()),
             (city == null ? city : city.toUpperCase()),
             (region == null ? region : region.toUpperCase()),
             (postalCode == null ? postalCode : postalCode.toUpperCase()),
             (country == null ? country : country.toUpperCase()),
             (homePhone == null ? homePhone : homePhone.toUpperCase()),
             (extension == null ? extension : extension.toUpperCase()),
             Arrays.hashCode(photo),
             reportsTo,
             (photoPath == null ? photoPath : photoPath.toUpperCase()));
     hashCode = result;
   }
   return result;
 }
Пример #9
0
 @Override
 public int hashCode() {
   if (hashcode == 0) {
     hashcode = Objects.hash(unresolvedDependencies, coindexation, isConjunction);
   }
   return hashcode;
 }
Пример #10
0
 @Override
 public int hashCode() {
   return Objects.hash(
       accountSid,
       addressRequirements,
       apiVersion,
       beta,
       capabilities,
       dateCreated,
       dateUpdated,
       friendlyName,
       phoneNumber,
       sid,
       smsApplicationSid,
       smsFallbackMethod,
       smsFallbackUrl,
       smsMethod,
       smsUrl,
       statusCallback,
       statusCallbackMethod,
       trunkSid,
       uri,
       voiceApplicationSid,
       voiceCallerIdLookup,
       voiceFallbackMethod,
       voiceFallbackUrl,
       voiceMethod,
       voiceUrl);
 }
Пример #11
0
 /**
  * @return returns a unique code for this vector object based on its values. If two vectors are
  *     numerically equal, they will return the same hash code value.
  */
 @Override
 public int hashCode() {
   return Objects.hash(
       Double.valueOf(getX()),
       Double.valueOf(getY()),
       Double.valueOf(getZ()),
       Double.valueOf(getW()));
 }
Пример #12
0
 private static int basicHashCode(final TypeDefinition<?> type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue());
 }
Пример #13
0
 @Override
 public int hashCode() {
   int baseHash = super.hashCode();
   if (templateTypes.isEmpty()) {
     return baseHash;
   }
   return Objects.hash(templateTypes, baseHash);
 }
Пример #14
0
 @Override
 public final int hashCode() {
   Optional<TypeVariableInfo> typeVariableInfo = typeVariableInfo();
   Optional<PackageInfo> packageInfo = packageInfo();
   Optional<NameInfo> type = type();
   List<TypeParameterInfo> typeParameterInfoList = typeParameterInfoList();
   return Objects.hash(typeVariableInfo, packageInfo, type, typeParameterInfoList);
 }
Пример #15
0
  @Override
  public int hashCode() {
    //        return 7 * getName().hashCode()
    //                + 11 * new Double(salary).hashCode()
    //                + 13 * hireDate.hashCode();

    return Objects.hash(getName(), salary, hireDate);
  }
Пример #16
0
 @Override
 public int hashCode() {
   return Objects.hash(
       super.hashCode(),
       fielddata,
       fielddataMinFrequency,
       fielddataMaxFrequency,
       fielddataMinSegmentSize);
 }
Пример #17
0
 static int hashCode(final BitsTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getBits());
 }
Пример #18
0
 static int hashCode(final InstanceIdentifierTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.requireInstance());
 }
Пример #19
0
 static int hashCode(final UnsignedIntegerTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getRangeConstraints());
 }
Пример #20
0
 @Override
 public int hashCode() {
   return Objects.hash(
       include == null ? null : include.getOriginalString(),
       exclude == null ? null : exclude.getOriginalString(),
       includeValues,
       excludeValues,
       incZeroBasedPartition,
       incNumPartitions);
 }
Пример #21
0
 static int hashCode(final DecimalTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getFractionDigits(),
       type.getRangeConstraints());
 }
Пример #22
0
 static int hashCode(final StringTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getLengthConstraints(),
       type.getPatternConstraints());
 }
 @Override
 protected int doHashCode() {
   return Objects.hash(
       fieldsAndWeights,
       analyzer,
       defaultOperator,
       queryText,
       minimumShouldMatch,
       settings,
       flags);
 }
 @Override
 public int hashCode() {
   return Objects.hash(
       super.hashCode(),
       subQuery,
       maxBoost,
       combineFunction,
       minScore,
       scoreMode,
       Arrays.hashCode(filterFunctions));
 }
Пример #25
0
 @Override
 public int hashCode() {
   return Objects.hash(
       getName(),
       getHierarchicalContext(),
       searchField,
       searchExpression,
       caseSensitive,
       keywordSeparator,
       onlySplitWordsAtSeparator);
 }
 @Override
 public int hashCode() {
   return Objects.hash(
       _calcConfigNames,
       _names,
       _nameMatchPattern,
       _nameLikePattern,
       _instrumentTypes,
       _quoteTypes,
       _quoteUnits);
 }
Пример #27
0
 @Override
 public int hashCode() {
   return Objects.hash(
       fontName,
       fontStyle,
       fontWeight,
       fontStretch,
       fontVariant,
       unicodeRange,
       fontFeatureSettings);
 }
Пример #28
0
 @Override
 public int hashCode() {
   return Objects.hash(
       architecture,
       entityId,
       entityName,
       entityType,
       lowestCompVersion,
       ovfData,
       ovfExtraData,
       storageDomainId);
 }
Пример #29
0
 @Override
 public int hashCode() {
   int result = hash;
   if (result == 0) {
     result = Objects.hash(nodeType, super.type, type, arguments, memberDeclarations);
     if (result == 0) {
       result = 1;
     }
     hash = result;
   }
   return result;
 }
 @Override
 public int hashCode() {
   return java.util.Objects.hash(
       super.hashCode(),
       geohashFieldType,
       geohashPrecision,
       geohashPrefixEnabled,
       latFieldType,
       lonFieldType,
       coerce,
       ignoreMalformed);
 }