Class PyStatResult

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List, Traverseproc

    public class PyStatResult
    extends PyTuple
    See Also:
    Serialized Form
    • Method Detail

      • fromFileStat

        public static PyStatResult fromFileStat​(jnr.posix.FileStat stat)
      • fromUnixFileAttributes

        public static PyStatResult fromUnixFileAttributes​(java.util.Map<java.lang.String,​java.lang.Object> stat)
      • fromDosFileAttributes

        public static PyStatResult fromDosFileAttributes​(int mode,
                                                         java.nio.file.attribute.DosFileAttributes stat)
      • __eq__

        public PyObject __eq__​(PyObject o)
        Description copied from class: PyObject
        Equivalent to the standard Python __eq__ method.
        Overrides:
        __eq__ in class PySequence
        Parameters:
        o - the object to compare this with.
        Returns:
        the result of the comparison.
      • __ne__

        public PyObject __ne__​(PyObject o)
        Description copied from class: PyObject
        Equivalent to the standard Python __ne__ method.
        Overrides:
        __ne__ in class PySequence
        Parameters:
        o - the object to compare this with.
        Returns:
        the result of the comparison.
      • __reduce__

        public PyObject __reduce__()
        Used for pickling.
        Overrides:
        __reduce__ in class PyObject
        Returns:
        a tuple of (class, tuple)
      • __repr__

        public PyString __repr__()
        Description copied from class: PyObject
        Equivalent to the standard Python __repr__ method. This method should not typically need to be overrriden. The easiest way to configure the string representation of a PyObject is to override the standard Java toString method.
        Overrides:
        __repr__ in class PyObject