Examples of TShortList


Examples of gnu.trove.list.TShortList

        sort(0, size);
    }

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

Examples of gnu.trove.list.TShortList

        };
    }

    /** {@inheritDoc} */
    public TShortList grep(TShortProcedure condition) {
        TShortList ret = new TShortLinkedList();
        for (TShortLink l = head; got(l); l = l.getNext()) {
            if (condition.execute(l.getValue()))
                ret.add(l.getValue());
        }
        return ret;
    }
View Full Code Here

Examples of gnu.trove.list.TShortList

        return ret;
    }

    /** {@inheritDoc} */
    public TShortList inverseGrep(TShortProcedure condition) {
        TShortList ret = new TShortLinkedList();
        for (TShortLink l = head; got(l); l = l.getNext()) {
            if (!condition.execute(l.getValue()))
                ret.add(l.getValue());
        }
        return ret;
    }
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.