@Test public void testHashCode() { DependencyTraverser traverser1 = new StaticDependencyTraverser( true ); DependencyTraverser traverser2 = new StaticDependencyTraverser( true ); assertEquals( traverser1.hashCode(), traverser2.hashCode() ); }
@Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + ( traverse ? 1 : 0 ); return hash; }
StaticDependencyTraverser implements DependencyTraverser { @Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + ( traverse ? 1 : 0 ); return hash; } }
StaticDependencyTraverser implements DependencyTraverser { @Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + ( traverse ? 1 : 0 ); return hash; } StaticDependencyTraverser( boolean traverse ); }
StaticDependencyTraverser implements DependencyTraverser { @Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + ( traverse ? 1 : 0 ); return hash; } StaticDependencyTraverser( boolean traverse ); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode(); }
StaticDependencyTraverser implements DependencyTraverser { @Override public int hashCode() { int hash = getClass().hashCode(); hash = hash * 31 + ( traverse ? 1 : 0 ); return hash; } StaticDependencyTraverser( boolean traverse ); boolean traverseDependency( Dependency dependency ); DependencyTraverser deriveChildTraverser( DependencyCollectionContext context ); @Override boolean equals( Object obj ); @Override int hashCode();  }