Package org.apache.commons.collections.Trie.Cursor

Examples of org.apache.commons.collections.Trie.Cursor.Decision


            final Cursor<? super K, ? super V> cursor,
            final Reference<Map.Entry<K, V>> reference) {

        if (h.bitIndex <= bitIndex) {
            if (!h.isEmpty()) {
                final Decision decision = cursor.select(h);
                switch(decision) {
                    case REMOVE:
                        throw new UnsupportedOperationException("Cannot remove during select");
                    case EXIT:
                        reference.set(h);
View Full Code Here


    public Map.Entry<K, V> traverse(final Cursor<? super K, ? super V> cursor) {
        TrieEntry<K, V> entry = nextEntry(null);
        while (entry != null) {
            final TrieEntry<K, V> current = entry;
           
            final Decision decision = cursor.select(current);
            entry = nextEntry(current);
           
            switch(decision) {
                case EXIT:
                    return current;
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.Trie.Cursor.Decision

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.