java.util.Calendar.hashCode()方法的使用及代码示例

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

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

Calendar.hashCode介绍

[英]Returns a hash code for this calendar.
[中]

代码示例

代码示例来源:origin: openhab/openhab1-addons

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

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

@Override public int hashCode() {
  return super.hashCode()
      + ((int) (gregorianCutover >>> 32) ^ (int) gregorianCutover);
}

代码示例来源:origin: org.postgresql/postgresql

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

代码示例来源:origin: org.postgresql/postgresql

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

代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api

@Override
public int hashCode() {
  int hash = 17;
  hash = hash * 37 + (isGranted ? 1 : 0);
  hash = username != null ? hash * 37 + username.hashCode() : hash;
  hash = creator != null ? hash * 37 + creator.hashCode() : hash;
  hash = begin != null ? hash * 37 + begin.hashCode() : hash;
  hash = end != null ? hash * 37 + end.hashCode() : hash;
  hash = permission != null ? hash * 37 + permission.hashCode() : hash;
  return hash;
}

代码示例来源:origin: hector-client/hector

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + (a == null ? 0 : a.hashCode());
 result = prime * result + (b == null ? 0 : b.hashCode());
 result = prime * result + (c == null ? 0 : c.hashCode());
 return result;
}
@Override

代码示例来源:origin: hector-client/hector

@Override
public int hashCode() {
 final int prime = 31;
 int result = 1;
 result = prime * result + (a == null ? 0 : a.hashCode());
 result = prime * result + (b == null ? 0 : b.hashCode());
 result = prime * result + (c == null ? 0 : c.hashCode());
 return result;
}
@Override

代码示例来源:origin: aws-amplify/aws-sdk-android

result = prime * result + ((byteAttribute == null) ? 0 : byteAttribute.hashCode());
result = prime * result + ((byteSetAttribute == null) ? 0 : byteSetAttribute.hashCode());
result = prime * result + ((calendarAttribute == null) ? 0 : calendarAttribute.hashCode());
result = prime * result
    + ((calendarSetAttribute == null) ? 0 : calendarSetAttribute.hashCode());

代码示例来源:origin: aws-amplify/aws-sdk-android

result = prime * result
    + ((byteObjectAttribute == null) ? 0 : byteObjectAttribute.hashCode());
result = prime * result + ((calendarAttribute == null) ? 0 : calendarAttribute.hashCode());
result = prime * result + ((dateAttribute == null) ? 0 : dateAttribute.hashCode());
long temp;

代码示例来源:origin: Impetus/Kundera

public void testBasicHashCode()
{
  String one = new String("One");
  assertTrue(DeepEquals.deepHashCode(one) == one.hashCode());
  Double pi = 3.14159;
  assertTrue(DeepEquals.deepHashCode(pi) == pi.hashCode());
  Calendar c = Calendar.getInstance();
  assertTrue(DeepEquals.deepHashCode(c) == c.hashCode());
  Date date = new Date();
  assertTrue(DeepEquals.deepHashCode(date) == date.hashCode());
}

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

/**
   * Returns the hashcode of the underlying calendar.
   *
   * @return an <code>int</code> value
   */
  public int hashCode() {
    return _value == null ? 0 : _value.hashCode();
  }
}

代码示例来源:origin: com.github.nyla-solutions/nyla.solutions.core

/**
 * Overload required as default definition of equals() has changed.
 *
 * @return  A hash code value for this object.
 */
public int hashCode()
{
 return calendar_.hashCode();
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

/**
   * Returns the hashcode of the underlying calendar.
   *
   * @return an <code>int</code> value
   */
  public int hashCode() {
    return _value == null ? 0 : _value.hashCode();
  }
}

代码示例来源:origin: org.apache.axis/axis

/**
   * Returns the hashcode of the underlying calendar.
   *
   * @return an <code>int</code> value
   */
  public int hashCode() {
    return _value == null ? 0 : _value.hashCode();
  }
}

代码示例来源:origin: org.openrdf.mulgara/mulgara-store-stringpool-api

/**
 * Calculate the hash code for the gDay object
 *
 * @return The hash code for the object
 */
public int hashCode() {
 return day.hashCode();
}

代码示例来源:origin: org.apache.directory.shared/shared-ldap

@Override
public int hashCode()
{
  final int prime = 31;
  int result = 1;
  result = prime * result + calendar.hashCode();
  return result;
}

代码示例来源:origin: org.apache.axis2/axis2-adb

/**
   * Returns the hashcode of the underlying calendar.
   *
   * @return Returns an <code>int</code> value.
   */
  public int hashCode() {
    return _value == null ? 0 : _value.hashCode();
  }
}

代码示例来源:origin: jenkinsci/jira-plugin

@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + (archived ? 1231 : 1237);
  result = prime * result + ((name == null) ? 0 : name.hashCode());
  result = prime * result
      + ((releaseDate == null) ? 0 : releaseDate.hashCode());
  result = prime * result + (released ? 1231 : 1237);
  return result;
}

代码示例来源:origin: roundrop/facebook4j

@Override
public int hashCode() {
  int result = title != null ? title.hashCode() : 0;
  result = 31 * result + (description != null ? description.hashCode() : 0);
  result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
  return result;
}

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

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

相关文章