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

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


    }

    @Override
    public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
    {
        FloatArrayList result = new FloatArrayList(this.size());
        this.forEach(new CollectFloatProcedure<T>(floatFunction, result));
        return result;
    }
View Full Code Here


        return this.collectDouble(doubleFunction, new DoubleArrayList());
    }

    public MutableFloatList collectFloat(FloatFunction<? super T> floatFunction)
    {
        return this.collectFloat(floatFunction, new FloatArrayList());
    }
View Full Code Here

    {
        this.checkNegativeCount(count);
        this.checkSizeLessThanCount(count);
        if (count == 0)
        {
            return new FloatArrayList();
        }
        MutableFloatList subList = new FloatArrayList(count);
        int index = this.delegate.size() - 1;
        for (int i = 0; i < count; i++)
        {
            subList.add(this.delegate.get(index - i));
        }
        return subList;
    }
View Full Code Here

        }

        public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
        {
            int size = in.readInt();
            FloatArrayList deserializedDelegate = new FloatArrayList(size);

            for (int i = 0; i < size; i++)
            {
                deserializedDelegate.add(in.readFloat());
            }

            this.stack = ImmutableFloatArrayStack.newStackFromTopToBottom(deserializedDelegate);
        }
View Full Code Here

    public FloatList peek(int count)
    {
        this.checkNegativeCount(count);
        if (count == 0)
        {
            return new FloatArrayList(0);
        }
        throw new EmptyStackException();
    }
View Full Code Here

        return new float[0];
    }

    public MutableFloatList toSortedList()
    {
        return new FloatArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableFloatList toList()
    {
        return new FloatArrayList();
    }
View Full Code Here

        return true;
    }

    public ImmutableFloatList select(FloatPredicate predicate)
    {
        FloatArrayList result = new FloatArrayList();
        for (float item : this.items)
        {
            if (predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableFloatList reject(FloatPredicate predicate)
    {
        FloatArrayList result = new FloatArrayList();
        for (float item : this.items)
        {
            if (!predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

    {
        if (objectArray == null)
        {
            throw new IllegalArgumentException("Cannot perform a collectFloat on null");
        }
        MutableFloatList result = new FloatArrayList(objectArray.length);
        for (T each : objectArray)
        {
            result.add(floatFunction.floatValueOf(each));
        }
        return result;
    }
View Full Code Here

TOP

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

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.