Package com.gs.collections.impl.list.mutable.primitive

Examples of com.gs.collections.impl.list.mutable.primitive.LongArrayList


        return target;
    }

    public MutableLongCollection collectLong(LongFunction<? super V> longFunction)
    {
        return this.collectLong(longFunction,  new LongArrayList(this.size()));
    }
View Full Code Here


        this.forEachValue(procedure);
    }

    public MutableLongCollection select(LongPredicate predicate)
    {
        LongArrayList result = new LongArrayList();

        if (this.sentinelValues != null)
        {
            if (this.sentinelValues.containsZeroKey && predicate.accept(this.sentinelValues.zeroValue))
            {
                result.add(this.sentinelValues.zeroValue);
            }
            if (this.sentinelValues.containsOneKey && predicate.accept(this.sentinelValues.oneValue))
            {
                result.add(this.sentinelValues.oneValue);
            }
        }
        for (int i = 0; i < this.keys.length; i++)
        {
            if (isNonSentinel(this.keys[i]) && predicate.accept(this.values[i]))
            {
                result.add(this.values[i]);
            }
        }

        return result;
    }
View Full Code Here

        return result;
    }

    public MutableLongCollection reject(LongPredicate predicate)
    {
        LongArrayList result = new LongArrayList();
        if (this.sentinelValues != null)
        {
            if (this.sentinelValues.containsZeroKey && !predicate.accept(this.sentinelValues.zeroValue))
            {
                result.add(this.sentinelValues.zeroValue);
            }
            if (this.sentinelValues.containsOneKey && !predicate.accept(this.sentinelValues.oneValue))
            {
                result.add(this.sentinelValues.oneValue);
            }
        }
        for (int i = 0; i < this.keys.length; i++)
        {
            if (isNonSentinel(this.keys[i]) && !predicate.accept(this.values[i]))
            {
                result.add(this.values[i]);
            }
        }
        return result;
    }
View Full Code Here

        return new long[0];
    }

    public MutableLongList toSortedList()
    {
        return new LongArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableLongList toList()
    {
        return new LongArrayList();
    }
View Full Code Here

        return UnmodifiableDoubleSet.of(new DoubleHashSet());
    }

    public MutableLongCollection values()
    {
        return UnmodifiableLongCollection.of(new LongArrayList());
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableLongCollection collectLong(LongFunction<? super V> longFunction)
    {
        LongArrayList result = new LongArrayList(this.size());
        this.forEach(new CollectLongProcedure<V>(longFunction, result));
        return result.toImmutable();
    }
View Full Code Here

        return new long[0];
    }

    public MutableLongList toSortedList()
    {
        return new LongArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableLongList toList()
    {
        return new LongArrayList();
    }
View Full Code Here

        return UnmodifiableByteSet.of(new ByteHashSet());
    }

    public MutableLongCollection values()
    {
        return UnmodifiableLongCollection.of(new LongArrayList());
    }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.list.mutable.primitive.LongArrayList

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.