private static LongIterator PrimitiveIds(IntObjectMap <MutableLongSet> map) { if (map == null) { return(ImmutableEmptyLongIterator.INSTANCE); } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final int size = toIntExact(map.sumOfInt(org.eclipse.collections.api.set.primitive.LongSet::size)); int size = toIntExact(map.sumOfInt(LongSet.size)); //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.eclipse.collections.api.set.primitive.MutableLongSet ids = new org.eclipse.collections.impl.set.mutable.primitive.LongHashSet(size); MutableLongSet ids = new LongHashSet(size); map.values().forEach(ids.addAll); return(ids.longIterator()); }