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

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


        return new ImmutableCharArrayStack(CharArrayList.newList(items).reverseThis());
    }

    public ImmutableCharStack push(char item)
    {
        CharArrayList newDelegate = CharArrayList.newList(this.delegate);
        newDelegate.add(item);
        return new ImmutableCharArrayStack(newDelegate);
    }
View Full Code Here


        return new ImmutableCharArrayStack(newDelegate);
    }

    public ImmutableCharStack pop()
    {
        CharArrayList newDelegate = CharArrayList.newList(this.delegate);
        newDelegate.removeAtIndex(this.delegate.size() - 1);
        return CharStacks.immutable.with(newDelegate.toArray());
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableCharList collectChar(CharFunction<? super T> charFunction)
    {
        CharArrayList result = new CharArrayList();
        this.forEach(new CollectCharProcedure<T>(charFunction, result));
        return result.toImmutable();
    }
View Full Code Here

    }

    public ImmutableCharList select(CharPredicate predicate)
    {
        return predicate.accept(this.element1) ? CharArrayList.newListWith(this.element1).toImmutable()
                : new CharArrayList().toImmutable();
    }
View Full Code Here

                : new CharArrayList().toImmutable();
    }

    public ImmutableCharList reject(CharPredicate predicate)
    {
        return predicate.accept(this.element1) ? new CharArrayList().toImmutable()
                : CharArrayList.newListWith(this.element1).toImmutable();
    }
View Full Code Here

        return this.element1 == element ? CharLists.immutable.with() : this;
    }

    public ImmutableCharList newWithAll(CharIterable elements)
    {
        CharArrayList arrayList = CharArrayList.newListWith(this.element1);
        arrayList.addAll(elements);
        return arrayList.toImmutable();
    }
View Full Code Here

    }

    @Override
    public MutableCharList collectChar(final CharFunction<? super T> charFunction)
    {
        final CharArrayList result = new CharArrayList(this.size());
        this.forEach(new Procedure<T>()
        {
            public void value(T each)
            {
                result.add(charFunction.charValueOf(each));
            }
        });
        return result;
    }
View Full Code Here

        return new char[0];
    }

    public MutableCharList toSortedList()
    {
        return new CharArrayList();
    }
View Full Code Here

        return ReverseCharIterable.adapt(this);
    }

    public MutableCharList toList()
    {
        return new CharArrayList();
    }
View Full Code Here

    }

    @Override
    public MutableCharList collectChar(CharFunction<? super T> charFunction)
    {
        return this.collectChar(charFunction, new CharArrayList(this.size));
    }
View Full Code Here

TOP

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

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.