Search in sources :

Example 6 with IntIterator

use of com.b2international.collections.ints.IntIterator in project snow-owl by b2ihealthcare.

the class InternalSctIdMultimap method keySet.

@Override
public LongSet keySet() {
    final LongSet keySet = PrimitiveSets.newLongOpenHashSetWithExpectedSize(internalIdMultimap.size());
    for (final IntIterator itr = internalIdMultimap.keySet().iterator(); itr.hasNext(); ) /*empty*/
    {
        final int keyInternalId = itr.next();
        final long keySctId = internalIdMap.getSctId(keyInternalId);
        keySet.add(keySctId);
    }
    return keySet;
}
Also used : IntIterator(com.b2international.collections.ints.IntIterator) LongSet(com.b2international.collections.longs.LongSet)

Aggregations

IntIterator (com.b2international.collections.ints.IntIterator)6 IntSet (com.b2international.collections.ints.IntSet)4 Test (org.junit.Test)3 LongSet (com.b2international.collections.longs.LongSet)2 BitSet (java.util.BitSet)1