コード例 #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
ファイル: LUNs.java プロジェクト: oVirt/ovirt-engine
 @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
ファイル: Clique.java プロジェクト: automenta/corenlp
 @Override
 public int hashCode() {
   if (hashCode == -1) {
     hashCode = Objects.hash(relativeIndices); // toString().hashCode();
   }
   return hashCode;
 }
コード例 #6
0
 @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
ファイル: Content.java プロジェクト: zjmeixinyanzhi/xp
 @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
ファイル: Local.java プロジェクト: twilio/twilio-java
 @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
ファイル: Vector4.java プロジェクト: gouessej/Ardor3D
 /**
  * @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
ファイル: TypeParameterInfo.java プロジェクト: objectos/way
 @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
ファイル: Employee.java プロジェクト: tenghuanhe/ideapocket
  @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());
 }
コード例 #23
0
 @Override
 protected int doHashCode() {
   return Objects.hash(
       fieldsAndWeights,
       analyzer,
       defaultOperator,
       queryText,
       minimumShouldMatch,
       settings,
       flags);
 }
コード例 #24
0
 @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);
 }
コード例 #26
0
 @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
ファイル: NewExpression.java プロジェクト: yiming187/calcite
 @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;
 }
コード例 #30
0
 @Override
 public int hashCode() {
   return java.util.Objects.hash(
       super.hashCode(),
       geohashFieldType,
       geohashPrecision,
       geohashPrefixEnabled,
       latFieldType,
       lonFieldType,
       coerce,
       ignoreMalformed);
 }