Examples of FloatHashSet


Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return result;
    }

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

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return target;
    }

    public MutableFloatSet collectFloat(FloatFunction<? super K> floatFunction)
    {
        return this.collectFloat(floatFunction, new FloatHashSet());
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

    }

    public ImmutableFloatSet select(FloatPredicate predicate)
    {
        return predicate.accept(this.element) ? FloatHashSet.newSetWith(this.element).toImmutable()
                : new FloatHashSet().toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

                : new FloatHashSet().toImmutable();
    }

    public ImmutableFloatSet reject(FloatPredicate predicate)
    {
        return predicate.accept(this.element) ? new FloatHashSet().toImmutable()
                : FloatHashSet.newSetWith(this.element).toImmutable();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return result.toImmutable();
    }

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

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return 0;
    }

    public MutableFloatSet toSet()
    {
        return new FloatHashSet();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

    }

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

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

    }

    public void readExternal(ObjectInput in) throws IOException
    {
        int size = in.readInt();
        MutableFloatSet deserializedSet = new FloatHashSet(size);

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

        this.set = deserializedSet;
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return 0;
    }

    public MutableFloatSet toSet()
    {
        return new FloatHashSet();
    }
View Full Code Here

Examples of com.gs.collections.impl.set.mutable.primitive.FloatHashSet

        return modified;
    }

    public boolean removeAll(float... source)
    {
        FloatHashSet set = FloatHashSet.newSetWith(source);
        float[] newItems = new float[this.size];
        int count = 0;
        int oldSize = this.size;
        for (int index = 0; index < this.size; index++)
        {
            if (!set.contains(this.items[index]))
            {
                newItems[count] = this.items[index];
                count++;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.