@Override public int hashCode() { return identifier.hashCode(); }
@Override public int hashCode() { return id.hashCode(); }
@Override public int hashCode() { return 31 * type.hashCode() + id.hashCode(); }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + datastoreType.hashCode(); result = prime * result + rootIdentifier.hashCode(); return result; }
@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); }
@Override public int hashCode() { return datastoreType.hashCode() * 31 + rootIdentifier.hashCode(); }
@Override public int hashCode() { return getIdentifier().hashCode(); }
@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); }
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); }
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); }
@Override public final int hashCode() { final int prime = 31; int result = 1; result = prime * result + type.hashCode(); result = prime * result + getContextReference().hashCode(); return result; }
@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; }
/** * 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()); }
/** * 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()); }
@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; }