Class ObjectPtrVector

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

    public class ObjectPtrVector
    extends java.util.AbstractList<ObjectPtr>
    implements java.util.RandomAccess
    • Constructor Detail

      • ObjectPtrVector

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

        public ObjectPtrVector​(ObjectPtr[] initialElements)
      • ObjectPtrVector

        public ObjectPtrVector​(java.lang.Iterable<ObjectPtr> initialElements)
      • ObjectPtrVector

        public ObjectPtrVector()
      • ObjectPtrVector

        public ObjectPtrVector​(int count,
                               ObjectPtr value)
    • Method Detail

      • delete

        public void delete()
      • get

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

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

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

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

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

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

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

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