|
|||||||||
| 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. |
java.lang.Object |
__tojava__(java.lang.Class c)
Return this instance as a Java object. |
PyObject |
__xor__(PyObject other)
The symmetric difference of the this with other. |
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
PyObject |
difference(PyObject other)
|
abstract int |
hashCode()
The hashCode of the set. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
int |
size()
|
PyObject |
symmetric_difference(PyObject other)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.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 PyObjectother - A BaseSet instance.
public PyObject __and__(PyObject other)
this with other.
__and__ in class PyObjectother - A BaseSet instance.
public PyObject __sub__(PyObject other)
this with other.
__sub__ in class PyObjectother - A BaseSet instance.
public PyObject difference(PyObject other)
public PyObject __xor__(PyObject other)
this with other.
__xor__ in class PyObjectother - A BaseSet instance.
public PyObject symmetric_difference(PyObject other)
public abstract int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class PyObjectpublic int __len__()
__len__ in class PyObjectpublic boolean __nonzero__()
true by Python.
This implementation returns true if the set is not empty.
__nonzero__ in class PyObjecttrue if the set is not empty, false otherwisepublic PyObject __iter__()
__iter__ in class PyObjectpublic boolean __contains__(PyObject other)
PyObject
__contains__ in class PyObjectother - the element to search for in this container.
public int __cmp__(PyObject other)
PyObject
__cmp__ in class PyObjectother - the object to compare this with.
public PyObject __eq__(PyObject other)
PyObject
__eq__ in class PyObjectother - the object to compare this with.
public PyObject __ne__(PyObject other)
PyObject
__ne__ in class PyObjectother - the object to compare this with.
public PyObject __le__(PyObject other)
PyObject
__le__ in class PyObjectother - the object to compare this with.
public PyObject __ge__(PyObject other)
PyObject
__ge__ in class PyObjectother - the object to compare this with.
public PyObject __lt__(PyObject other)
PyObject
__lt__ in class PyObjectother - the object to compare this with.
public PyObject __gt__(PyObject other)
PyObject
__gt__ in class PyObjectother - 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 java.lang.Object __tojava__(java.lang.Class c)
__tojava__ in class PyObjectc - The Class to coerce to.
public java.lang.String toString()
toString in class PyObjectpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Setpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Setpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in interface java.util.Setpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.Setpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Setpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Setpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.Setpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.Set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||