Package com.cbe

Class Items_Vec

  • All Implemented Interfaces:
    java.lang.Iterable<Item>, java.util.Collection<Item>, java.util.List<Item>, java.util.RandomAccess

    public class Items_Vec
    extends java.util.AbstractList<Item>
    implements java.util.RandomAccess
    class Items_Vec java implementation of c++ std vector of CBE::Item objects.
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, Item e)  
      boolean add​(Item e)  
      long capacity()  
      void clear()  
      Item get​(int index)  
      boolean isEmpty()  
      Item remove​(int index)  
      void reserve​(long n)  
      Item set​(int index, Item e)  
      int size()  
      • Methods inherited from class java.util.AbstractList

        addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Constructor Detail

      • Items_Vec

        public Items_Vec​(Item[] initialElements)
      • Items_Vec

        public Items_Vec​(java.lang.Iterable<Item> initialElements)
      • Items_Vec

        public Items_Vec()
      • Items_Vec

        public Items_Vec​(Items_Vec other)
      • Items_Vec

        public Items_Vec​(int count,
                         Item value)
    • Method Detail

      • get

        public Item get​(int index)
        Specified by:
        get in interface java.util.List<Item>
        Specified by:
        get in class java.util.AbstractList<Item>
      • set

        public Item set​(int index,
                        Item e)
        Specified by:
        set in interface java.util.List<Item>
        Overrides:
        set in class java.util.AbstractList<Item>
      • add

        public boolean add​(Item e)
        Specified by:
        add in interface java.util.Collection<Item>
        Specified by:
        add in interface java.util.List<Item>
        Overrides:
        add in class java.util.AbstractList<Item>
      • add

        public void add​(int index,
                        Item e)
        Specified by:
        add in interface java.util.List<Item>
        Overrides:
        add in class java.util.AbstractList<Item>
      • remove

        public Item remove​(int index)
        Specified by:
        remove in interface java.util.List<Item>
        Overrides:
        remove in class java.util.AbstractList<Item>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Item>
        Specified by:
        size in interface java.util.List<Item>
        Specified by:
        size in class java.util.AbstractCollection<Item>
      • capacity

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<Item>
        Specified by:
        isEmpty in interface java.util.List<Item>
        Overrides:
        isEmpty in class java.util.AbstractCollection<Item>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<Item>
        Specified by:
        clear in interface java.util.List<Item>
        Overrides:
        clear in class java.util.AbstractList<Item>