Class VectorQ

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

    public class VectorQ
    extends java.util.AbstractList<Q>
    implements java.util.RandomAccess
    • Constructor Summary

      Constructors 
      Constructor Description
      VectorQ()  
      VectorQ​(int count, Q value)  
      VectorQ​(long cPtr, boolean cMemoryOwn)  
      VectorQ​(java.lang.Iterable<Q> initialElements)  
      VectorQ​(Q[] initialElements)  
      VectorQ​(VectorQ other)  
    • Method Summary

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

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

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

        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

      • VectorQ

        public VectorQ​(long cPtr,
                       boolean cMemoryOwn)
      • VectorQ

        public VectorQ​(Q[] initialElements)
      • VectorQ

        public VectorQ​(java.lang.Iterable<Q> initialElements)
      • VectorQ

        public VectorQ()
      • VectorQ

        public VectorQ​(VectorQ other)
      • VectorQ

        public VectorQ​(int count,
                       Q value)
    • Method Detail

      • getCPtr

        public static long getCPtr​(VectorQ obj)
      • delete

        public void delete()
      • get

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

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

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

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

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

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

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

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

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