Class ContextListImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> _contexts  
      private ORB _orb  
      private static int INITIAL_CAPACITY  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String ctxt)
      Adds a String object to this ContextList object.
      int count()
      Returns the number of String objects in this ContextList object.
      java.lang.String item​(int index)
      Returns the String object at the given index.
      void remove​(int index)
      Removes the String object at the given index.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _orb

        private ORB _orb
      • _contexts

        private java.util.List<java.lang.String> _contexts
    • Constructor Detail

      • ContextListImpl

        public ContextListImpl​(ORB orb)
    • Method Detail

      • count

        public int count()
        Description copied from class: ContextList
        Returns the number of String objects in this ContextList object.
        Specified by:
        count in class ContextList
        Returns:
        an int representing the number of Strings in this ContextList object
      • add

        public void add​(java.lang.String ctxt)
        Description copied from class: ContextList
        Adds a String object to this ContextList object.
        Specified by:
        add in class ContextList
        Parameters:
        ctxt - the String object to be added
      • item

        public java.lang.String item​(int index)
                              throws Bounds
        Description copied from class: ContextList
        Returns the String object at the given index.
        Specified by:
        item in class ContextList
        Parameters:
        index - the index of the string desired, with 0 being the index of the first string
        Returns:
        the string at the given index
        Throws:
        Bounds - if the index is greater than or equal to the number of strings in this ContextList object
      • remove

        public void remove​(int index)
                    throws Bounds
        Description copied from class: ContextList
        Removes the String object at the given index. Note that the indices of all strings following the one removed are shifted down by one.
        Specified by:
        remove in class ContextList
        Parameters:
        index - the index of the String object to be removed, with 0 designating the first string
        Throws:
        Bounds - if the index is greater than or equal to the number of String objects in this ContextList object