Package org.apache.activemq.kaha.impl.index

Examples of org.apache.activemq.kaha.impl.index.IndexLinkedList


        return container.containsValue(o);
    }

   
    public Iterator iterator(){
        IndexLinkedList list=container.getItemList();
        return new ContainerValueCollectionIterator(container,list,list.getRoot());
    }
View Full Code Here


    }

  
    public Object[] toArray(){
        Object[] result = null;
        IndexLinkedList list = container.getItemList();
        synchronized(list){
            result = new Object[list.size()];
            IndexItem item = list.getFirst();
            int count = 0;
            while (item != null){
                Object value=container.getValue(item)
                result[count++] = value;
               
                item = list.getNextEntry(item);
            }
          
           
        }
        return result;
View Full Code Here

        }
        return result;
    }

    public Object[] toArray(Object[] result){
        IndexLinkedList list=container.getItemList();
        synchronized(list){
            if(result.length<=list.size()){
                IndexItem item = list.getFirst();
                int count = 0;
                while (item != null){
                    Object value=container.getValue(item)
                    result[count++] = value;
                   
                    item = list.getNextEntry(item);
                }
            }
        }
        return result;
    }
View Full Code Here

    public boolean contains(Object o) {
        return container.containsValue(o);
    }

    public Iterator iterator() {
        IndexLinkedList list = container.getItemList();
        return new ContainerValueCollectionIterator(container, list, list.getRoot());
    }
View Full Code Here

        return new ContainerValueCollectionIterator(container, list, list.getRoot());
    }

    public Object[] toArray() {
        Object[] result = null;
        IndexLinkedList list = container.getItemList();
        synchronized (list) {
            result = new Object[list.size()];
            IndexItem item = list.getFirst();
            int count = 0;
            while (item != null) {
                Object value = container.getValue(item);
                result[count++] = value;

                item = list.getNextEntry(item);
            }

        }
        return result;
    }
View Full Code Here

        }
        return result;
    }

    public Object[] toArray(Object[] result) {
        IndexLinkedList list = container.getItemList();
        synchronized (list) {
            if (result.length <= list.size()) {
                IndexItem item = list.getFirst();
                int count = 0;
                while (item != null) {
                    Object value = container.getValue(item);
                    result[count++] = value;

                    item = list.getNextEntry(item);
                }
            }
        }
        return result;
    }
View Full Code Here

    public boolean contains(Object o) {
        return container.containsValue(o);
    }

    public Iterator iterator() {
        IndexLinkedList list = container.getItemList();
        return new ContainerValueCollectionIterator(container, list, list.getRoot());
    }
View Full Code Here

        return new ContainerValueCollectionIterator(container, list, list.getRoot());
    }

    public Object[] toArray() {
        Object[] result = null;
        IndexLinkedList list = container.getItemList();
        synchronized (list) {
            result = new Object[list.size()];
            IndexItem item = list.getFirst();
            int count = 0;
            while (item != null) {
                Object value = container.getValue(item);
                result[count++] = value;

                item = list.getNextEntry(item);
            }

        }
        return result;
    }
View Full Code Here

        }
        return result;
    }

    public Object[] toArray(Object[] result) {
        IndexLinkedList list = container.getItemList();
        synchronized (list) {
            if (result.length <= list.size()) {
                IndexItem item = list.getFirst();
                int count = 0;
                while (item != null) {
                    Object value = container.getValue(item);
                    result[count++] = value;

                    item = list.getNextEntry(item);
                }
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.activemq.kaha.impl.index.IndexLinkedList

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.