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

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


        return Sets.immutable.of();
    }

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


        return new char[0];
    }

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

        return true;
    }

    public ImmutableCharList select(CharPredicate predicate)
    {
        CharArrayList result = new CharArrayList();
        for (char item : this.items)
        {
            if (predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

        return result.toImmutable();
    }

    public ImmutableCharList reject(CharPredicate predicate)
    {
        CharArrayList result = new CharArrayList();
        for (char item : this.items)
        {
            if (!predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

        return Bags.immutable.of();
    }

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

        return new char[0];
    }

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

    private transient CharArrayList delegate;

    public CharArrayStack()
    {
        this.delegate = new CharArrayList();
    }
View Full Code Here

        this.delegate = new CharArrayList();
    }

    private CharArrayStack(int size)
    {
        this.delegate = new CharArrayList(size);
    }
View Full Code Here

        this.delegate = new CharArrayList(size);
    }

    private CharArrayStack(char... items)
    {
        this.delegate = new CharArrayList(items);
    }
View Full Code Here

    {
        this.checkPositiveValueForCount(count);
        this.checkSizeLessThanCount(count);
        if (count == 0)
        {
            return new CharArrayList(0);
        }
        MutableCharList subList = new CharArrayList(count);
        while (count > 0)
        {
            subList.add(this.pop());
            count--;
        }
        return subList;
    }
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.