Package gnu.trove.list

Examples of gnu.trove.list.TCharList


        sort(0, size);
    }

    /** {@inheritDoc} */
    public void sort(int fromIndex, int toIndex) {
        TCharList tmp = subList(fromIndex, toIndex);
        char[] vals = tmp.toArray();
        Arrays.sort(vals);
        set(fromIndex, vals);
    }
View Full Code Here


        };
    }

    /** {@inheritDoc} */
    public TCharList grep(TCharProcedure condition) {
        TCharList ret = new TCharLinkedList();
        for (TCharLink l = head; got(l); l = l.getNext()) {
            if (condition.execute(l.getValue()))
                ret.add(l.getValue());
        }
        return ret;
    }
View Full Code Here

        return ret;
    }

    /** {@inheritDoc} */
    public TCharList inverseGrep(TCharProcedure condition) {
        TCharList ret = new TCharLinkedList();
        for (TCharLink l = head; got(l); l = l.getNext()) {
            if (!condition.execute(l.getValue()))
                ret.add(l.getValue());
        }
        return ret;
    }
View Full Code Here

TOP

Related Classes of gnu.trove.list.TCharList

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.