Package com.carrotsearch.hppc.cursors

Examples of com.carrotsearch.hppc.cursors.FloatCursor


        private final FloatCursor cursor;
        private int remaining;

        public ValueIterator()
        {
            cursor = new FloatCursor();
            cursor.index = oneLeft(head, buffer.length);
            this.remaining = size();
        }
View Full Code Here


        private final FloatCursor cursor;
        private int remaining;

        public DescendingValueIterator()
        {
            cursor = new FloatCursor();
            cursor.index = tail;
            this.remaining = size();
        }
View Full Code Here

        private final FloatCursor cursor;
        private int remaining;

        public ValueIterator()
        {
            cursor = new FloatCursor();
            cursor.index = oneLeft(head, buffer.length);
            this.remaining = size();
        }
View Full Code Here

        private final FloatCursor cursor;
        private int remaining;

        public DescendingValueIterator()
        {
            cursor = new FloatCursor();
            cursor.index = tail;
            this.remaining = size();
        }
View Full Code Here

        deque.addLast(sequence);

        int index = sequence.size() - 1;
        for (Iterator<FloatCursor> i = deque.descendingIterator(); i.hasNext(); )
        {
            FloatCursor cursor = i.next();
            assertEquals2(sequence.buffer[index], cursor.value);
            assertEquals2(deque.buffer[cursor.index], cursor.value);
            index--;
        }
        assertEquals(-1, index);
View Full Code Here

TOP

Related Classes of com.carrotsearch.hppc.cursors.FloatCursor

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.