gpt4 book ai didi

org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.hashCode()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 16:42:40 26 4
gpt4 key购买 nike

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

YangInstanceIdentifier.hashCode介绍

暂无

代码示例

代码示例来源:origin: opendaylight/controller

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

代码示例来源:origin: io.fd.honeycomb/data-impl

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

代码示例来源:origin: org.opendaylight.controller/sal-common-api

@Override
public int hashCode() {
  return 31 * type.hashCode() + id.hashCode();
}

代码示例来源:origin: opendaylight/controller

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

代码示例来源:origin: org.opendaylight.yangtools/yang-data-api

@Override
public boolean equals(final Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof YangInstanceIdentifier)) {
    return false;
  }
  YangInstanceIdentifier other = (YangInstanceIdentifier) obj;
  if (this.hashCode() != obj.hashCode()) {
    return false;
  }
  return pathArgumentsEqual(other);
}

代码示例来源:origin: org.opendaylight.mdsal/mdsal-dom-api

@Override
public int hashCode() {
  return datastoreType.hashCode() * 31 + rootIdentifier.hashCode();
}

代码示例来源:origin: opendaylight/controller

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

代码示例来源:origin: opendaylight/yangtools

@Override
public boolean equals(final Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof YangInstanceIdentifier)) {
    return false;
  }
  YangInstanceIdentifier other = (YangInstanceIdentifier) obj;
  if (this.hashCode() != obj.hashCode()) {
    return false;
  }
  return pathArgumentsEqual(other);
}

代码示例来源:origin: org.opendaylight.yangtools/yang-data-api

private void writeObject(final ObjectOutputStream outputStream) throws IOException {
  outputStream.defaultWriteObject();
  final FixedYangInstanceIdentifier p;
  if (parent instanceof FixedYangInstanceIdentifier) {
    p = (FixedYangInstanceIdentifier) parent;
  } else {
    p = FixedYangInstanceIdentifier.create(parent.getPathArguments(), parent.hashCode());
  }
  outputStream.writeObject(p);
}

代码示例来源:origin: opendaylight/yangtools

private void writeObject(final ObjectOutputStream outputStream) throws IOException {
  outputStream.defaultWriteObject();
  final FixedYangInstanceIdentifier p;
  if (parent instanceof FixedYangInstanceIdentifier) {
    p = (FixedYangInstanceIdentifier) parent;
  } else {
    p = FixedYangInstanceIdentifier.create(parent.getPathArguments(), parent.hashCode());
  }
  outputStream.writeObject(p);
}

代码示例来源:origin: opendaylight/controller

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

代码示例来源:origin: org.opendaylight.controller/sal-remoterpc-connector

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

代码示例来源:origin: opendaylight/yangtools

/**
 * Returns new builder for InstanceIdentifier with path arguments copied from original instance identifier.
 *
 * @param origin InstanceIdentifier from which path arguments are copied.
 * @return new builder for InstanceIdentifier with path arguments copied from original instance identifier.
 */
public static InstanceIdentifierBuilder builder(final YangInstanceIdentifier origin) {
  return new YangInstanceIdentifierBuilder(origin.getPathArguments(), origin.hashCode());
}

代码示例来源:origin: org.opendaylight.yangtools/yang-data-api

/**
 * Returns new builder for InstanceIdentifier with path arguments copied from original instance identifier.
 *
 * @param origin InstanceIdentifier from which path arguments are copied.
 * @return new builder for InstanceIdentifier with path arguments copied from original instance identifier.
 */
public static InstanceIdentifierBuilder builder(final YangInstanceIdentifier origin) {
  return new YangInstanceIdentifierBuilder(origin.getPathArguments(), origin.hashCode());
}

代码示例来源:origin: org.opendaylight.mdsal/mdsal-dom-api

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com