Package com.gs.collections.api.block.procedure.primitive

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


        public long[] toArray()
        {
            int size = LongCharHashMap.this.size();
            final long[] result = new long[size];
            LongCharHashMap.this.forEachKey(new LongProcedure()
            {
                private int index;

                public void value(long each)
                {
View Full Code Here


        return this;
    }

    public LongCharHashMap withoutAllKeys(LongIterable keys)
    {
        keys.forEach(new LongProcedure()
        {
            public void value(long key)
            {
                LongCharHashMap.this.removeKey(key);
            }
View Full Code Here

    @Override
    public long[] toArray()
    {
        final long[] array = new long[this.size()];
        this.forEach(new LongProcedure()
        {
            @SuppressWarnings("FieldMayBeFinal")
            private int index = 0;
            public void value(long each)
            {
View Full Code Here

        }
        if (map.size() == 1)
        {
            //TODO use keysView() when available.
            final long[] array = new long[1];
            map.forEachKey(new LongProcedure()
            {
                public void value(long each)
                {
                    array[0] = each;
                }
View Full Code Here

        this.function = function;
    }

    public void forEach(final Procedure<? super V> procedure)
    {
        this.iterable.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                procedure.value(CollectLongToObjectIterable.this.function.valueOf(each));
            }
View Full Code Here

        });
    }

    public void forEachWithIndex(final ObjectIntProcedure<? super V> objectIntProcedure)
    {
        this.iterable.forEach(new LongProcedure()
        {
            private int index;

            public void value(long each)
            {
View Full Code Here

        });
    }

    public <P> void forEachWith(final Procedure2<? super V, ? super P> procedure, final P parameter)
    {
        this.iterable.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                procedure.value(CollectLongToObjectIterable.this.function.valueOf(each), parameter);
            }
View Full Code Here

    }

    public MutableLongList toList()
    {
        final MutableLongList list = new LongArrayList();
        this.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                list.add(each);
            }
View Full Code Here

    }

    public MutableLongSet toSet()
    {
        final MutableLongSet set = new LongHashSet();
        this.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                set.add(each);
            }
View Full Code Here

    }

    public MutableLongBag toBag()
    {
        final MutableLongBag bag = new LongHashBag();
        this.forEach(new LongProcedure()
        {
            public void value(long each)
            {
                bag.add(each);
            }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.block.procedure.primitive.LongProcedure

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.