|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.core.PyObject
org.python.core.BaseSet
public abstract class BaseSet
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.python.core.PyObject |
---|
PyObject.ConversionException |
Field Summary |
---|
Fields inherited from class org.python.core.PyObject |
---|
TYPE |
Method Summary | |
---|---|
PyObject |
__and__(PyObject other)
The intersection of the this with other . |
int |
__cmp__(PyObject other)
Equivalent to the standard Python __cmp__ method. |
boolean |
__contains__(PyObject other)
Equivalent to the standard Python __contains__ method. |
PyObject |
__eq__(PyObject other)
Equivalent to the standard Python __eq__ method. |
PyObject |
__ge__(PyObject other)
Equivalent to the standard Python __ge__ method. |
PyObject |
__gt__(PyObject other)
Equivalent to the standard Python __gt__ method. |
PyObject |
__iter__()
Produce an iterable object. |
PyObject |
__le__(PyObject other)
Equivalent to the standard Python __le__ method. |
int |
__len__()
The length of the set. |
PyObject |
__lt__(PyObject other)
Equivalent to the standard Python __lt__ method. |
PyObject |
__ne__(PyObject other)
Equivalent to the standard Python __ne__ method. |
boolean |
__nonzero__()
Determines if the instance is considered true by Python. |
PyObject |
__or__(PyObject other)
The union of this with other . |
PyObject |
__reduce__()
Used for pickling. |
PyObject |
__sub__(PyObject other)
The difference of the this with other . |
PyObject |
__xor__(PyObject other)
The symmetric difference of the this with other . |
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
PyObject |
difference(PyObject other)
|
abstract int |
hashCode()
The hashCode of the set. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
int |
size()
|
PyObject |
symmetric_difference(PyObject other)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
equals |
Method Detail |
---|
public PyObject __or__(PyObject other)
this
with other
.
__or__
in class PyObject
other
- A BaseSet
instance.
public PyObject __and__(PyObject other)
this
with other
.
__and__
in class PyObject
other
- A BaseSet
instance.
public PyObject __sub__(PyObject other)
this
with other
.
__sub__
in class PyObject
other
- A BaseSet
instance.
public PyObject difference(PyObject other)
public PyObject __xor__(PyObject other)
this
with other
.
__xor__
in class PyObject
other
- A BaseSet
instance.
public PyObject symmetric_difference(PyObject other)
public abstract int hashCode()
hashCode
in interface Collection
hashCode
in interface Set
hashCode
in class PyObject
public int __len__()
__len__
in class PyObject
public boolean __nonzero__()
true
by Python.
This implementation returns true if the set is not empty.
__nonzero__
in class PyObject
true
if the set is not empty, false
otherwisepublic PyObject __iter__()
__iter__
in class PyObject
public boolean __contains__(PyObject other)
PyObject
__contains__
in class PyObject
other
- the element to search for in this container.
public int __cmp__(PyObject other)
PyObject
__cmp__
in class PyObject
other
- the object to compare this with.
public PyObject __eq__(PyObject other)
PyObject
__eq__
in class PyObject
other
- the object to compare this with.
public PyObject __ne__(PyObject other)
PyObject
__ne__
in class PyObject
other
- the object to compare this with.
public PyObject __le__(PyObject other)
PyObject
__le__
in class PyObject
other
- the object to compare this with.
public PyObject __ge__(PyObject other)
PyObject
__ge__
in class PyObject
other
- the object to compare this with.
public PyObject __lt__(PyObject other)
PyObject
__lt__
in class PyObject
other
- the object to compare this with.
public PyObject __gt__(PyObject other)
PyObject
__gt__
in class PyObject
other
- the object to compare this with.
public PyObject __reduce__()
setsfactory to
export safe constructors.
- Overrides:
__reduce__
in class PyObject
- Returns:
- a tuple of (constructor, (elements))
public String toString()
toString
in class PyObject
public int size()
size
in interface Collection
size
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public boolean add(Object o)
add
in interface Collection
add
in interface Set
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface Set
public boolean containsAll(Collection c)
containsAll
in interface Collection
containsAll
in interface Set
public boolean removeAll(Collection c)
removeAll
in interface Collection
removeAll
in interface Set
public boolean retainAll(Collection c)
retainAll
in interface Collection
retainAll
in interface Set
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] a)
toArray
in interface Collection
toArray
in interface Set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |