Class BodyPtrVector

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

    public class BodyPtrVector
    extends java.util.AbstractList<BodyPtr>
    implements java.util.RandomAccess
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int index, BodyPtr e)  
      boolean add​(BodyPtr e)  
      long capacity()  
      void clear()  
      void delete()  
      BodyPtr get​(int index)  
      static long getCPtr​(BodyPtrVector obj)  
      boolean isEmpty()  
      BodyPtr remove​(int index)  
      void reserve​(long n)  
      BodyPtr set​(int index, BodyPtr 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

      • BodyPtrVector

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

        public BodyPtrVector​(BodyPtr[] initialElements)
      • BodyPtrVector

        public BodyPtrVector​(java.lang.Iterable<BodyPtr> initialElements)
      • BodyPtrVector

        public BodyPtrVector()
      • BodyPtrVector

        public BodyPtrVector​(int count,
                             BodyPtr value)
    • Method Detail

      • delete

        public void delete()
      • get

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

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

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

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

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

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

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

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

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