public override void Close() { if (!MandatoryKeys.Empty) { for (IntIterator key = MandatoryKeys.intIterator(); key.hasNext();) { Reporter.report(Record, ReportClass, RecordType).missingMandatoryProperty(key.next()); } } }
private void LoadProperties(PropertyLoader propertyLoader, MutableIntSet additionalPropertiesToLoad, EntityType type) { _hasLoadedAdditionalProperties = true; propertyLoader.LoadProperties(_entityId, type, additionalPropertiesToLoad, this); // loadProperties removes loaded properties from the input set, so the remaining ones were not on the node //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.iterator.IntIterator propertiesWithNoValue = additionalPropertiesToLoad.intIterator(); IntIterator propertiesWithNoValue = additionalPropertiesToLoad.intIterator(); while (propertiesWithNoValue.hasNext()) { Put(propertiesWithNoValue.next(), _noValue); } }
internal virtual string DescribeWaitList() { StringBuilder sb = new StringBuilder(format("%nClient[%d] waits for [", Id())); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.iterator.IntIterator iter = waitList.iterator(); IntIterator iter = _waitList.GetEnumerator(); for (bool first = true; iter.hasNext();) { int next = iter.next(); if (next == _clientId) { // Skip our own id from the wait list, that's an implementation detail continue; } sb.Append((!first) ? "," : "").Append(next); first = false; } sb.Append("]"); return(sb.ToString()); }
private static int[] RandomSortedPageIds(int maxPagesInMemory) { MutableIntSet setIds = new IntHashSet(); ThreadLocalRandom rng = ThreadLocalRandom.current(); for (int i = 0; i < maxPagesInMemory; i++) { setIds.add(rng.Next(maxPagesInMemory * 7)); } int[] pageIds = new int[setIds.size()]; IntIterator itr = setIds.intIterator(); int i = 0; while (itr.hasNext()) { pageIds[i] = itr.next(); i++; } Arrays.sort(pageIds); return(pageIds); }