public CommunityLockClient(LockManagerImpl manager) { this._manager = manager; _readReleaser = (key, lockResource) => manager.releaseReadLock(lockResource, _lockTransaction); _writeReleaser = (key, lockResource) => manager.releaseWriteLock(lockResource, _lockTransaction); _typeReadReleaser = value => value.forEachKeyValue(_readReleaser); _typeWriteReleaser = value => value.forEachKeyValue(_writeReleaser); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void forEachKeyValue() internal virtual void ForEachKeyValue() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.block.procedure.primitive.LongObjectProcedure<org.neo4j.values.storable.Value> consumer = mock(org.eclipse.collections.api.block.procedure.primitive.LongObjectProcedure.class); LongObjectProcedure <Value> consumer = mock(typeof(LongObjectProcedure)); _map.putAll(LongObjectHashMap.newWithKeysValues(0, intValue(10), 1, intValue(11), 2, intValue(12))); _map.forEachKeyValue(consumer); verify(consumer).value(eq(0L), eq(intValue(10))); verify(consumer).value(eq(1L), eq(intValue(11))); verify(consumer).value(eq(2L), eq(intValue(12))); verifyNoMoreInteractions(consumer); }
internal void ForEachIndexProxy(LongObjectProcedure <IndexProxy> consumer) { _indexesById.forEachKeyValue(consumer); }