|
|||||||||
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 |
---|
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 java.util.Collection
hashCode
in interface java.util.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 java.lang.Object __tojava__(java.lang.Class c)
__tojava__
in class PyObject
c
- The Class to coerce to.
public java.lang.String toString()
toString
in class PyObject
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.Set
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.Set
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.Set
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.Set
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.Set
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.Set
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.Set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |