Package com.gs.collections.api.iterator

Examples of com.gs.collections.api.iterator.LongIterator


    public ImmutableLongByteMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongByteMap map = new LongByteHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here


    public ImmutableLongIntMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongIntMap map = new LongIntHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        public boolean removeAll(LongIterable source)
        {
            int oldSize = DoubleLongHashMap.this.size();

            LongIterator iterator = source.longIterator();
            while (iterator.hasNext())
            {
                this.remove(iterator.next());
            }
            return oldSize != DoubleLongHashMap.this.size();
        }
View Full Code Here

    {
        if (this.isEmpty())
        {
            throw new NoSuchElementException();
        }
        LongIterator iterator = this.longIterator();
        long max = iterator.next();
        while (iterator.hasNext())
        {
            long value = iterator.next();
            if (max < value)
            {
                max = value;
            }
        }
View Full Code Here

    {
        if (this.isEmpty())
        {
            throw new NoSuchElementException();
        }
        LongIterator iterator = this.longIterator();
        long min = iterator.next();
        while (iterator.hasNext())
        {
            long value = iterator.next();
            if (value < min)
            {
                min = value;
            }
        }
View Full Code Here

    public ImmutableLongShortMap newWithoutAllKeys(LongIterable keys)
    {
        MutableLongShortMap map = new LongShortHashMap(this.size());
        map.putAll(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

        }

        public boolean removeAll(LongIterable source)
        {
            int oldSize = LongCharHashMap.this.size();
            LongIterator iterator = source.longIterator();
            while (iterator.hasNext())
            {
                LongCharHashMap.this.removeKey(iterator.next());
            }
            return oldSize != LongCharHashMap.this.size();
        }
View Full Code Here

            return true;
        }

        public boolean containsAll(LongIterable source)
        {
            LongIterator iterator = source.longIterator();
            while (iterator.hasNext())
            {
                if (!LongCharHashMap.this.containsKey(iterator.next()))
                {
                    return false;
                }
            }
            return true;
View Full Code Here

    }

    public ImmutableLongObjectMap<V> newWithoutAllKeys(LongIterable keys)
    {
        LongObjectHashMap<V> map = new LongObjectHashMap<V>(this);
        LongIterator iterator = keys.longIterator();
        while (iterator.hasNext())
        {
            map.removeKey(iterator.next());
        }
        return map.toImmutable();
    }
View Full Code Here

            return sum;
        }

        public long max()
        {
            LongIterator longIterator = this.longIterator();
            long max = longIterator.next();
            while (longIterator.hasNext())
            {
                max = (long) Math.max(max, longIterator.next());
            }
            return max;
        }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.iterator.LongIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.