Examples of FloatIntProcedure


Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    }

    public FloatHashBag(FloatHashBag bag)
    {
        this.items = new FloatIntHashMap(bag.sizeDistinct());
        bag.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float item, int occurrences)
            {
                FloatHashBag.this.addOccurrences(item, occurrences);
            }
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    }

    public static FloatHashBag newBag(FloatBag source)
    {
        final FloatHashBag result = new FloatHashBag();
        source.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float each, int occurrences)
            {
                result.addOccurrences(each, occurrences);
            }
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

            return false;
        }
        if (source instanceof FloatBag)
        {
            FloatBag otherBag = (FloatBag) source;
            otherBag.forEachWithOccurrences(new FloatIntProcedure()
            {
                public void value(float each, int occurrences)
                {
                    FloatHashBag.this.addOccurrences(each, occurrences);
                }
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

        }
        int oldSize = this.size();
        if (source instanceof FloatBag)
        {
            FloatBag otherBag = (FloatBag) source;
            otherBag.forEachWithOccurrences(new FloatIntProcedure()
            {
                public void value(float each, int occurrences)
                {
                    int oldOccurrences = FloatHashBag.this.items.removeKeyIfAbsent(each, 0);
                    FloatHashBag.this.size -= oldOccurrences;
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

        return true;
    }

    public void forEach(final FloatProcedure procedure)
    {
        this.items.forEachKeyValue(new FloatIntProcedure()
        {
            public void value(float key, int occurrences)
            {
                for (int i = 0; i < occurrences; i++)
                {
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    }

    public FloatHashBag select(final FloatPredicate predicate)
    {
        final FloatHashBag result = new FloatHashBag();
        this.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float each, int occurrences)
            {
                if (predicate.accept(each))
                {
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    }

    public FloatHashBag reject(final FloatPredicate predicate)
    {
        final FloatHashBag result = new FloatHashBag();
        this.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float each, int occurrences)
            {
                if (!predicate.accept(each))
                {
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    @Override
    public int hashCode()
    {
        final Counter result = new Counter();
        this.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float eachItem, int occurrences)
            {
                result.add(Float.floatToIntBits(eachItem) ^ occurrences);
            }
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    {
        final boolean[] firstItem = {true};
        try
        {
            appendable.append(start);
            this.items.forEachKeyValue(new FloatIntProcedure()
            {
                public void value(float each, int occurrences)
                {
                    try
                    {
View Full Code Here

Examples of com.gs.collections.api.block.procedure.primitive.FloatIntProcedure

    }

    public int count(final FloatPredicate predicate)
    {
        final Counter result = new Counter();
        this.forEachWithOccurrences(new FloatIntProcedure()
        {
            public void value(float each, int occurrences)
            {
                if (predicate.accept(each))
                {
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.