//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public <E extends Exception> void visitKeys(org.neo4j.collection.primitive.PrimitiveIntVisitor<E> visitor) throws E public override void VisitKeys <E>(PrimitiveIntVisitor <E> visitor) where E : Exception { int capacity = Table.capacity(); long nullKey = Table.nullKey(); for (int i = 0; i < capacity; i++) { long key = Table.key(i); if (key != nullKey && visitor.Visited(( int )key)) { return; } } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") @Test void intVisitorShouldSeeAllEntriesIfItDoesNotBreakOut() internal virtual void IntVisitorShouldSeeAllEntriesIfItDoesNotBreakOut() { // GIVEN PrimitiveIntSet set = Primitive.intSet(); set.Add(1); set.Add(2); set.Add(3); PrimitiveIntVisitor <Exception> visitor = mock(typeof(PrimitiveIntVisitor)); // WHEN set.VisitKeys(visitor); // THEN verify(visitor).visited(1); verify(visitor).visited(2); verify(visitor).visited(3); verifyNoMoreInteractions(visitor); }
public override void VisitKeys(PrimitiveIntVisitor visitor) { throw new System.NotSupportedException("Please implement"); }
public override void VisitKeys(PrimitiveIntVisitor visitor) { // No keys to visit }