private static LongIterator PrimitiveIdsByType(IntObjectMap <MutableLongSet> map, int type)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.eclipse.collections.api.set.primitive.LongSet relationships = map.get(type);
            LongSet relationships = map.get(type);

            return(relationships == null ? ImmutableEmptyLongIterator.INSTANCE : relationships.freeze().longIterator());
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: private DiffApplyingPrimitiveLongIterator(org.eclipse.collections.api.iterator.LongIterator source, org.eclipse.collections.api.set.primitive.LongSet addedElements, org.eclipse.collections.api.set.primitive.LongSet removedElements, @Nullable Resource resource)
        private DiffApplyingPrimitiveLongIterator(LongIterator source, LongSet addedElements, LongSet removedElements, Resource resource)
        {
            this._source                = source;
            this._addedElements         = addedElements.freeze();
            this._addedElementsIterator = this._addedElements.longIterator();
            this._removedElements       = removedElements;
            this._resource              = resource;
            this._phase = Phase.FilteredSource;
        }