java.text.DateFormat.hashCode()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(224)

本文整理了Java中java.text.DateFormat.hashCode()方法的一些代码示例,展示了DateFormat.hashCode()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DateFormat.hashCode()方法的具体详情如下:
包路径:java.text.DateFormat
类名称:DateFormat
方法名:hashCode

DateFormat.hashCode介绍

[英]Overrides hashCode
[中]覆盖哈希代码

代码示例

代码示例来源:origin: robovm/robovm

@Override
public int hashCode() {
  return super.hashCode() + pattern.hashCode() + formatData.hashCode() + creationYear;
}

代码示例来源:origin: json-iterator/java

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + (excludeFieldsWithoutExposeAnnotation ? 1 : 0);
  result = 31 * result + (disableHtmlEscaping ? 1 : 0);
  result = 31 * result + dateFormat.get().hashCode();
  result = 31 * result + (fieldNamingStrategy != null ? fieldNamingStrategy.hashCode() : 0);
  result = 31 * result + (version != null ? version.hashCode() : 0);
  result = 31 * result + (serializationExclusionStrategies != null ? serializationExclusionStrategies.hashCode() : 0);
  result = 31 * result + (deserializationExclusionStrategies != null ? deserializationExclusionStrategies.hashCode() : 0);
  return result;
}

代码示例来源:origin: at.bestsolution.eclipse/com.ibm.icu.base

/**
 * Overrides hashCode.
 * @stable ICU 2.0
 */
public int hashCode() {
  return dateFormat.hashCode();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/com.ibm.icu.base

/**
 * Overrides hashCode.
 * @stable ICU 2.0
 */
public int hashCode() {
  return dateFormat.hashCode();
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a hash code for this object.
 *
 * @return A hash code.
 */
public int hashCode() {
  int result = 19;
  result = 37 * result + this.unitType.hashCode();
  result = 37 * result + this.count;
  result = 37 * result + this.formatter.hashCode();
  return result;
}

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a hash code for this object.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
  int result = 41;
  result = result + 37 * this.periodClass.hashCode();
  result = result + 37 * this.dateFormat.hashCode();
  return result;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a hash code for this object.
 *
 * @return A hash code.
 */
public int hashCode() {
  int result = 41;
  result = 37 * this.periodClass.hashCode();
  result = 37 * this.dateFormat.hashCode();
  return result;
}

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a hash code for this object.
 *
 * @return A hash code.
 */
@Override
public int hashCode() {
  int result = 19;
  result = 37 * result + this.unitType.hashCode();
  result = 37 * result + this.count;
  result = 37 * result + this.formatter.hashCode();
  return result;
}

代码示例来源:origin: ical4j/ical4j

public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + pattern.hashCode();
    result = 31 * result + (lenient ? 1 : 0);
    result = 31 * result + timeZone.hashCode();
    return result;
  }
}

代码示例来源:origin: org.mnode.ical4j/ical4j

public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + pattern.hashCode();
    result = 31 * result + (lenient ? 1 : 0);
    result = 31 * result + timeZone.hashCode();
    return result;
  }
}

代码示例来源:origin: org.bedework/bw-ical4j-cl

public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + pattern.hashCode();
    result = 31 * result + (lenient ? 1 : 0);
    result = 31 * result + timeZone.hashCode();
    return result;
  }
}

代码示例来源:origin: net.oneandone.ical4j/ical4j

public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + pattern.hashCode();
    result = 31 * result + (lenient ? 1 : 0);
    result = 31 * result + timeZone.hashCode();
    return result;
  }
}

代码示例来源:origin: org.bedework.ical4j/ical4j

public int hashCode() {
    int result = super.hashCode();
    result = 31 * result + pattern.hashCode();
    result = 31 * result + (lenient ? 1 : 0);
    result = 31 * result + timeZone.hashCode();
    return result;
  }
}

代码示例来源:origin: FlexoVM/flexovm

@Override
public int hashCode() {
  return super.hashCode() + pattern.hashCode() + formatData.hashCode() + creationYear;
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

@Override
public int hashCode() {
  return super.hashCode() + pattern.hashCode() + formatData.hashCode() + creationYear;
}

代码示例来源:origin: com.jsoniter/jsoniter

@Override
public int hashCode() {
  int result = super.hashCode();
  result = 31 * result + (excludeFieldsWithoutExposeAnnotation ? 1 : 0);
  result = 31 * result + (disableHtmlEscaping ? 1 : 0);
  result = 31 * result + dateFormat.get().hashCode();
  result = 31 * result + (fieldNamingStrategy != null ? fieldNamingStrategy.hashCode() : 0);
  result = 31 * result + (version != null ? version.hashCode() : 0);
  result = 31 * result + (serializationExclusionStrategies != null ? serializationExclusionStrategies.hashCode() : 0);
  result = 31 * result + (deserializationExclusionStrategies != null ? deserializationExclusionStrategies.hashCode() : 0);
  return result;
}

代码示例来源:origin: Stratio/ingestion

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + (this.fieldName == null ? 0 : this.fieldName.hashCode());
  result = prime * result + (this.mappedName == null ? 0 : this.mappedName.hashCode());
  result = prime * result + (this.dateFormat == null ? 0 : this.dateFormat.hashCode());
  result = prime * result + (this.type == null ? 0 : this.type.hashCode());
  return result;
}

代码示例来源:origin: MobiVM/robovm

@Override
public int hashCode() {
  return super.hashCode() + pattern.hashCode() + formatData.hashCode() + creationYear;
}

代码示例来源:origin: com.coherentlogic.quandl.client/quandl-client-core

@Override
public int hashCode() {
  final int prime = 31;
  int result = super.hashCode();
  result = prime * result + ((columnMap == null) ? 0 : columnMap.hashCode());
  result = prime * result + ((dateFormat == null) ? 0 : dateFormat.hashCode());
  return result;
}

代码示例来源:origin: EvoSuite/evosuite

public int hashCode() {
  Capturer.capture(Instrumenter.CAPTURE_ID_JAVA_TEXT_DATEFORMAT, this, "hashCode", "()I", new Object[] {});
  int ret = super.hashCode();
  Capturer.enable(Instrumenter.CAPTURE_ID_JAVA_TEXT_DATEFORMAT, this, ret);
  return ret;
}

相关文章