Class PySet

All Implemented Interfaces:
Serializable, Iterable, Collection, Set, Traverseproc
Direct Known Subclasses:
PySetDerived

public class PySet extends BaseSet
See Also:
  • Field Details

    • TYPE

      public static final PyType TYPE
  • Constructor Details

    • PySet

      public PySet()
    • PySet

      public PySet(PyType type)
    • PySet

      public PySet(PyObject data)
    • PySet

      public PySet(PyObject[] data)
    • PySet

      public PySet(Set backing_set, PyObject data)
    • PySet

      public PySet(PyType type, Set backing_set, PyObject data)
  • Method Details

    • __ior__

      public PyObject __ior__(PyObject other)
      Description copied from class: PyObject
      Equivalent to the standard Python __ior__ method
      Overrides:
      __ior__ in class PyObject
      Parameters:
      other - the object to perform this binary operation with (the right-hand operand).
      Returns:
      the result of the ior, or null if this operation is not defined
    • __ixor__

      public PyObject __ixor__(PyObject other)
      Description copied from class: PyObject
      Equivalent to the standard Python __ixor__ method
      Overrides:
      __ixor__ in class PyObject
      Parameters:
      other - the object to perform this binary operation with (the right-hand operand).
      Returns:
      the result of the ixor, or null if this operation is not defined
    • __iand__

      public PyObject __iand__(PyObject other)
      Description copied from class: PyObject
      Equivalent to the standard Python __iand__ method
      Overrides:
      __iand__ in class PyObject
      Parameters:
      other - the object to perform this binary operation with (the right-hand operand).
      Returns:
      the result of the iand, or null if this operation is not defined
    • __isub__

      public PyObject __isub__(PyObject other)
      Description copied from class: PyObject
      Equivalent to the standard Python __isub__ method
      Overrides:
      __isub__ in class PyObject
      Parameters:
      other - the object to perform this binary operation with (the right-hand operand).
      Returns:
      the result of the isub, or null if this operation is not defined
    • hashCode

      public int hashCode()
      Description copied from class: BaseSet
      The hashCode of the set. Only immutable instances can be hashed.
      Specified by:
      hashCode in interface Collection
      Specified by:
      hashCode in interface Set
      Specified by:
      hashCode in class BaseSet
      Returns:
      The hashCode of the set.