Class VectorState

  • All Implemented Interfaces:
    java.lang.Iterable<State>, java.util.Collection<State>, java.util.List<State>, java.util.RandomAccess
    Direct Known Subclasses:
    PathState

    public class VectorState
    extends java.util.AbstractList<State>
    implements java.util.RandomAccess
    • Method Summary

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

      • VectorState

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

        public VectorState​(State[] initialElements)
      • VectorState

        public VectorState​(java.lang.Iterable<State> initialElements)
      • VectorState

        public VectorState()
      • VectorState

        public VectorState​(VectorState other)
      • VectorState

        public VectorState​(int count,
                           State value)
    • Method Detail

      • getCPtr

        public static long getCPtr​(VectorState obj)
      • delete

        public void delete()
      • get

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

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

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

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

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

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

        public long capacity()
      • reserve

        public void reserve​(long n)
      • isEmpty

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

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