//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.PrimitiveLongVisitor<E> visitor) throws E public override void VisitKeys <E>(PrimitiveLongVisitor <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(key)) { return; } } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unchecked") @Test void longVisitorShouldSeeAllEntriesIfItDoesNotBreakOut() internal virtual void LongVisitorShouldSeeAllEntriesIfItDoesNotBreakOut() { // GIVEN PrimitiveLongSet set = Primitive.longSet(); set.Add(1); set.Add(2); set.Add(3); PrimitiveLongVisitor <Exception> visitor = mock(typeof(PrimitiveLongVisitor)); // WHEN set.VisitKeys(visitor); // THEN verify(visitor).visited(1); verify(visitor).visited(2); verify(visitor).visited(3); verifyNoMoreInteractions(visitor); }
public override void VisitKeys(PrimitiveLongVisitor visitor) { throw new System.NotSupportedException("Please implement"); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public <E extends Exception> void visitKeys(PrimitiveLongVisitor<E> visitor) throws E public override void VisitKeys <E>(PrimitiveLongVisitor <E> visitor) where E : Exception { throw new System.NotSupportedException(); }
public override void VisitKeys(PrimitiveLongVisitor visitor) { // No keys to visit }
//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.PrimitiveLongVisitor<E> visitor) throws E public override void VisitKeys <E>(PrimitiveLongVisitor <E> visitor) where E : Exception { // No keys to visit }