|
|||||||||
| 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 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 CollectionhashCode in interface 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 String toString()
toString in class PyObjectpublic int size()
size in interface Collectionsize in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic boolean add(Object o)
add in interface Collectionadd in interface Setpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Setpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Setpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Setpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||