Package com.carrotsearch.hppc.cursors

Examples of com.carrotsearch.hppc.cursors.LongCursor


        private final LongCursor cursor;
        private int remaining;

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


        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

        deque.addLast(sequence);

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

        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

        private final LongCursor cursor;
        private int remaining;

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

TOP

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

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.