/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(at, workspaceName); }
/** * Compute a combined hash code from the supplied objects. This method always returns 0 if no objects are supplied. * * @param objects the objects that should be used to compute the hash code * @return the hash code */ public static int compute( Object... objects ) { return _compute(0, objects); }
@Test public void shouldComputeHashCodeForOnePrimitive() { assertThat(HashCode._compute(1), is(not(0))); assertThat(HashCode.compute((long)8), is(not(0))); assertThat(HashCode._compute((short) 3), is(not(0))); assertThat(HashCode.compute(1.0f), is(not(0))); assertThat(HashCode.compute(1.0d), is(not(0))); assertThat(HashCode.compute(true), is(not(0))); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(on, workspaceName); }
/** * Compute a combined hash code from the supplied objects. This method always returns 0 if no objects are supplied. * * @param objects the objects that should be used to compute the hash code * @return the hash code */ public static int compute( Object... objects ) { return _compute(0, objects); }
public RepositoryNodePath( String repositorySourceName, String workspaceName, String nodePath ) { this.repositorySourceName = repositorySourceName; this.workspaceName = workspaceName; this.nodePath = nodePath; this.hc = HashCode.compute(this.repositorySourceName, this.workspaceName, this.nodePath); }
/** * Compute a combined hash code from the supplied objects. This method always returns 0 if no objects are supplied. * * @param objects the objects that should be used to compute the hash code * @return the hash code */ public static int compute( Object... objects ) { return _compute(0, objects); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(this.name, this.namespacePrefix, this.namespaceUri, this.value); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(under, childName, workspaceName); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(this.category, this.name, this.label); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(at, workspaceName); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(startingAfter, workspaceName); }
/** * @param name the segment name * @throws IllegalArgumentException if the name is null or if the index is invalid */ public BasicPathSegment( Name name ) { assert name != null; this.name = name; this.index = Path.DEFAULT_INDEX; hc = HashCode.compute(name, index); }
/** * @param name the segment name * @throws IllegalArgumentException if the name is null or if the index is invalid */ public BasicPathSegment( Name name ) { assert name != null; this.name = name; this.index = Path.DEFAULT_INDEX; hc = HashCode.compute(name, index); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(this.category, this.name, this.label); }
/** * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(this.name, this.namespacePrefix, this.namespaceUri, this.value); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(at, workspaceName); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(of, workspaceName); }
/** * {@inheritDoc} * * @see java.lang.Object#hashCode() */ @Override public int hashCode() { return HashCode.compute(from, workspaceName, propertyName); }