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

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

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

LinkedList.hashCode介绍

暂无

代码示例

代码示例来源:origin: hankcs/HanLP

@Override
public int hashCode()
{
  return pipeList.hashCode();
}

代码示例来源:origin: opentripplanner/OpenTripPlanner

public int hashCode() {
  return this.edges.hashCode();
}

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

@Override
public int hashCode() {
  return recentProjectsList.hashCode() + detectorEnablementMap.hashCode() + filterSettings.hashCode() + effort.hashCode()
  + includeFilterFiles.hashCode() + excludeFilterFiles.hashCode() + (runAtFullBuild ? 1 : 0);
}

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

+ ((linkedHashSet == null) ? 0 : linkedHashSet.hashCode());
result = prime * result
    + ((linkedList == null) ? 0 : linkedList.hashCode());
result = prime * result + ((list == null) ? 0 : list.hashCode());
result = prime * result + ((name == null) ? 0 : name.hashCode());

代码示例来源:origin: net.sourceforge.cobertura/cobertura

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

代码示例来源:origin: aol/cyclops

@Test
public void equalsAndHash(){
  LinkedList<Integer> l = new LinkedList<>();
  ArrayList<Integer> al = new ArrayList<>();
  l.add(1);
  al.add(1);
  assertThat(l,equalTo(al));
  assertThat(l.hashCode(),equalTo(al.hashCode()));
  assertThat(Vector.of(1,2),equalTo(Seq.of(1,2)));
  assertThat(Vector.of(1,2).hashCode(),equalTo(Seq.of(1,2).hashCode()));
  assertThat(Vector.of(1,2),equalTo(LazySeq.of(1,2)));
  assertThat(Vector.of(1,2).hashCode(),equalTo(LazySeq.of(1,2).hashCode()));
  assertThat(Vector.of(1,2),equalTo(IntMap.of(1,2)));
  assertThat(Vector.of(1,2).hashCode(),equalTo(IntMap.of(1,2).hashCode()));
}

代码示例来源:origin: org.mule.runtime/mule-artifact-declaration

@Override
 public int hashCode() {
  return parts.hashCode();
 }
}

代码示例来源:origin: com.fossgalaxy.games/fireworks

@Override
  public int hashCode() {
    return cards.hashCode();
  }
}

代码示例来源:origin: com.toomuchcoding.jsonassert/jsonassert

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

代码示例来源:origin: telefonicaid/netphony-network-protocols

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

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

/** {@inheritDoc} */
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((coverage == null) ? 0 : coverage.hashCode());
  result = prime * result + ((finishedCalls == null) ? 0 : finishedCalls.hashCode());
  result = prime * result + ((returnData == null) ? 0 : returnData.hashCode());
  result = prime * result + ((stack == null) ? 0 : stack.hashCode());
  return result;
}

代码示例来源:origin: telefonicaid/netphony-network-protocols

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

代码示例来源:origin: bhlangonijr/chesslib

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

代码示例来源:origin: com.google.code.findbugs/findbugs

@Override
public int hashCode() {
  return recentProjectsList.hashCode() + detectorEnablementMap.hashCode() + filterSettings.hashCode() + effort.hashCode()
      + includeFilterFiles.hashCode() + excludeFilterFiles.hashCode() + (runAtFullBuild ? 1 : 0)
      + Util.nullSafeHashcode(cloudId);
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

@Override
public int hashCode() {
  if (!_directAccess && isDelayLoad()) {
    load();
  }
  return super.hashCode();
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

public int hashCode() {
  if (_actions == null)
    return _candidate.hashCode();
  return _candidate.hashCode() ^ _actions.hashCode();
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

@Override
public int hashCode() {
  if (!_directAccess && isDelayLoad()) {
    load();
  }
  return super.hashCode();
}

代码示例来源:origin: org.apache.openejb.patch/openjpa-kernel

@Override
public int hashCode() {
  if (!_directAccess && isDelayLoad()) {
    load();
  }
  return super.hashCode();
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

public int hashCode() {
  if (_actions == null)
    return _candidate.hashCode();
  return _candidate.hashCode() ^ _actions.hashCode();
}

代码示例来源:origin: org.apache.openjpa/openjpa-jdbc

public int hashCode() {
  if (_actions == null)
    return _candidate.hashCode();
  return _candidate.hashCode() ^ _actions.hashCode();
}

相关文章