예제 #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);
 }