Class ContactVector

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

    public class ContactVector
    extends java.util.AbstractList<Contact>
    implements java.util.RandomAccess
    • Method Summary

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

      • ContactVector

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

        public ContactVector​(Contact[] initialElements)
      • ContactVector

        public ContactVector​(java.lang.Iterable<Contact> initialElements)
      • ContactVector

        public ContactVector()
      • ContactVector

        public ContactVector​(int count,
                             Contact value)
    • Method Detail

      • delete

        public void delete()
      • get

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

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

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

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

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

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

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

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

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