Documentation of 'org.python.core.PySequenceList' Java class
PySequenceList
org.python.core

Class PySequenceList

    • Method Detail

      • add

        public abstract void add(int index,
                                 java.lang.Object element)
        Specified by:
        add in interface java.util.List
      • add

        public abstract boolean add(java.lang.Object o)
        Specified by:
        add in interface java.util.Collection
        Specified by:
        add in interface java.util.List
      • addAll

        public abstract boolean addAll(int index,
                                       java.util.Collection c)
        Specified by:
        addAll in interface java.util.List
      • addAll

        public abstract boolean addAll(java.util.Collection c)
        Specified by:
        addAll in interface java.util.Collection
        Specified by:
        addAll in interface java.util.List
      • clear

        public abstract void clear()
        Specified by:
        clear in interface java.util.Collection
        Specified by:
        clear in interface java.util.List
      • contains

        public abstract boolean contains(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection
        Specified by:
        contains in interface java.util.List
      • containsAll

        public abstract boolean containsAll(java.util.Collection c)
        Specified by:
        containsAll in interface java.util.Collection
        Specified by:
        containsAll in interface java.util.List
      • equals

        public abstract boolean equals(java.lang.Object o)
        Description copied from class: PyObject
        Should almost never be overridden. If overridden, it is the subclasses responsibility to ensure that a.equals(b) == true iff cmp(a,b) == 0
        Specified by:
        equals in interface java.util.Collection
        Specified by:
        equals in interface java.util.List
        Overrides:
        equals in class PyObject
      • get

        public abstract java.lang.Object get(int index)
        Specified by:
        get in interface java.util.List
      • getArray

        public abstract PyObject[] getArray()
        Get the backing array. The array should not be modified. To get a copy of the array, see toArray().
      • hashCode

        public abstract int hashCode()
        Specified by:
        hashCode in interface java.util.Collection
        Specified by:
        hashCode in interface java.util.List
        Overrides:
        hashCode in class PyObject
      • indexOf

        public abstract int indexOf(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List
      • isEmpty

        public abstract boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection
        Specified by:
        isEmpty in interface java.util.List
      • iterator

        public abstract java.util.Iterator iterator()
        Specified by:
        iterator in interface java.lang.Iterable
        Specified by:
        iterator in interface java.util.Collection
        Specified by:
        iterator in interface java.util.List
      • lastIndexOf

        public abstract int lastIndexOf(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List
      • listIterator

        public abstract java.util.ListIterator listIterator()
        Specified by:
        listIterator in interface java.util.List
      • listIterator

        public abstract java.util.ListIterator listIterator(int index)
        Specified by:
        listIterator in interface java.util.List
      • pyadd

        public abstract void pyadd(int index,
                                   PyObject element)
      • pyadd

        public abstract boolean pyadd(PyObject o)
      • pyget

        public abstract PyObject pyget(int index)
        Description copied from class: PySequence
        Returns the element of the sequence at the given index. This is an extension point called by PySequence in its implementation of PySequence.__getitem__(org.python.core.PyObject) It is guaranteed by PySequence that when it calls pyget(int) the index is within the bounds of the array. Any other clients must make the same guarantee.
        Parameters:
        index - index of element to return.
        Returns:
        the element at the given position in the list.
      • pyset

        public abstract void pyset(int index,
                                   PyObject element)
        Description copied from class: PySequence
        Sets the indexed element of the sequence to the given value. This is an extension point called by PySequence in its implementation of PySequence.__setitem__(int, org.python.core.PyObject) It is guaranteed by PySequence that when it calls pyset(int) the index is within the bounds of the array. Any other clients must make the same guarantee.
        Parameters:
        index - index of the element to set.
        element - the value to set this element to.
      • remove

        public abstract java.lang.Object remove(int index)
        Specified by:
        remove in interface java.util.List
      • remove

        public abstract void remove(int start,
                                    int stop)
      • remove

        public abstract boolean remove(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection
        Specified by:
        remove in interface java.util.List
      • removeAll

        public abstract boolean removeAll(java.util.Collection c)
        Specified by:
        removeAll in interface java.util.Collection
        Specified by:
        removeAll in interface java.util.List
      • retainAll

        public abstract boolean retainAll(java.util.Collection c)
        Specified by:
        retainAll in interface java.util.Collection
        Specified by:
        retainAll in interface java.util.List
      • set

        public abstract java.lang.Object set(int index,
                                             java.lang.Object element)
        Specified by:
        set in interface java.util.List
      • size

        public abstract int size()
        Specified by:
        size in interface java.util.Collection
        Specified by:
        size in interface java.util.List
      • subList

        public abstract java.util.List subList(int fromIndex,
                                               int toIndex)
        Specified by:
        subList in interface java.util.List
      • toArray

        public abstract java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection
        Specified by:
        toArray in interface java.util.List
      • toArray

        public abstract java.lang.Object[] toArray(java.lang.Object[] a)
        Specified by:
        toArray in interface java.util.Collection
        Specified by:
        toArray in interface java.util.List
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class PyObject
      • refersDirectlyTo

        public boolean refersDirectlyTo(PyObject ob)
                                 throws java.lang.UnsupportedOperationException
        Description copied from interface: Traverseproc
        Optional operation. Should only be implemented if it is more efficient than calling Traverseproc.traverse(Visitproc, Object) with a visitproc that just watches out for ob. Must return false if ob is null.
        Specified by:
        refersDirectlyTo in interface Traverseproc
        Throws:
        java.lang.UnsupportedOperationException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.