Set interface to minimize the effort required to implement this interface.
More...
#include <java_util_AbstractSet.h>
Inheritance diagram for java::util::AbstractSet:


Public Types | |
| enum | { xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9, xmogBuildNumber = 2047 } |
|
typedef ::xmog_java_array_template< ::java::util::AbstractSet > | array1D |
|
typedef ::xmog_java_array_template< ::xmog_java_array_template< ::java::util::AbstractSet > > | array2D |
Public Member Functions | |
| AbstractSet (::xmog_dummy _use_java_ctor,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) | |
| Sole constructor. | |
| virtual bool | add (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.add(). | |
| virtual bool | addAll (const ::java::util::Collection &c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.addAll(). | |
| virtual void | clear (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.clear(). | |
| virtual bool | contains (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.contains(). | |
| virtual bool | containsAll (const ::java::util::Collection &c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.containsAll(). | |
| virtual bool | equals (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Compares the specified object with this set for equality. | |
| virtual jint | hashCode (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Returns the hash code value for this set. | |
| virtual bool | isEmpty (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.isEmpty(). | |
| virtual ::java::util::Iterator | iterator (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.iterator(). | |
| virtual bool | remove (const ::java::lang::Object &o,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.remove(). | |
| virtual bool | removeAll (const ::java::util::Collection &c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
| Removes from this set all of its elements that are contained in the specified collection (optional operation). | |
| virtual bool | retainAll (const ::java::util::Collection &c,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.retainAll(). | |
| virtual jint | size (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.size(). | |
| virtual ::xmog_java_array_template< ::java::lang::Object > | toArray (const ::xmog_java_array_template< ::java::lang::Object > &a,::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.toArray(). | |
| virtual ::xmog_java_array_template< ::java::lang::Object > | toArray (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.util.Collection.toArray(). | |
| virtual ::java::lang::String | toString (::xmog_localenv *p_xenv=NULL, xmog_flags f_xflags=xmogDefaultFlags) |
The method representing the Java method java.lang.Object.toString(). | |
Set interface to minimize the effort required to implement this interface.
The process of implementing a set by extending this class is identical to that of implementing a Collection by extending AbstractCollection, except that all of the methods and constructors in subclasses of this class must obey the additional constraints imposed by the Set interface (for instance, the add method must not permit addition of multiple intances of an object to a set).
Note that this class does not override any of the implementations from the AbstractCollection class. It merely adds implementations for equals and hashCode.
This class is a member of the Java Collections Framework.
|
||||||||||||||||
|
Sole constructor. (For invocation by subclass constructors, typically implicit.)
|
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||||||
|
Compares the specified object with this set for equality.
Returns
This implementation first checks if the specified object is this set; if so it returns
Reimplemented from java::util::Set. Reimplemented in java::util::HashSet. |
|
||||||||||||
|
Returns the hash code value for this set.
The hash code of a set is defined to be the sum of the hash codes of the elements in the set. This ensures that
This implementation enumerates over the set, calling the
Reimplemented from java::util::Set. Reimplemented in java::util::HashSet. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
Removes from this set all of its elements that are contained in the specified collection (optional operation).
This implementation determines which is the smaller of this set and the specified collection, by invoking the
Note that this implementation will throw an
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
|
||||||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. |
|
||||||||||||
|
The method representing the Java method
Reimplemented from java::util::AbstractCollection. Reimplemented in java::util::HashSet. |
1.4.1