org.jacorb.collection.util
Class SortedVector

java.lang.Object
  extended by org.jacorb.collection.util.SortedVector

public class SortedVector
extends Object

Author:
Gerald Brose

Constructor Summary
SortedVector(ObjectComparator cmpr)
           
SortedVector(ObjectComparator cmpr, int capacity)
           
 
Method Summary
 int addElement(Object obj)
           
 Object elementAt(int index)
           
 Enumeration elements()
           
 int indexOf(Object obj)
           
 boolean insertElementAt(Object obj, int index)
           
 boolean isIndexValid(int index, Object obj)
           
 void removeAllElements()
           
 Object removeElementAt(int index)
           
 void setElementAt(Object obj, int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SortedVector

public SortedVector(ObjectComparator cmpr)

SortedVector

public SortedVector(ObjectComparator cmpr,
                    int capacity)
Method Detail

addElement

public int addElement(Object obj)
               throws ObjectInvalid
Throws:
ObjectInvalid

size

public int size()

elementAt

public Object elementAt(int index)

elements

public Enumeration elements()

removeElementAt

public Object removeElementAt(int index)

removeAllElements

public void removeAllElements()

indexOf

public int indexOf(Object obj)
            throws ObjectInvalid
Throws:
ObjectInvalid

setElementAt

public void setElementAt(Object obj,
                         int index)
                  throws ObjectInvalid
Throws:
ObjectInvalid

isIndexValid

public boolean isIndexValid(int index,
                            Object obj)
                     throws ObjectInvalid
Throws:
ObjectInvalid

insertElementAt

public boolean insertElementAt(Object obj,
                               int index)
                        throws ObjectInvalid
Throws:
ObjectInvalid


Copyright © 2015 JacORB. All rights reserved.