ISet ISet Interface


A Set is a data structure which does not allow duplicate elements.

[Android.Runtime.Register("java/util/Set", "", "Java.Util.ISetInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface ISet : IDisposable, Java.Util.ICollection
type ISet = interface
    interface ICollection
    interface IIterable
    interface IJavaObject
    interface IDisposable


Android platform documentation

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.


Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns true if this set has no elements.


Add(Object) Add(Object)
AddAll(ICollection) AddAll(ICollection)
Clear() Clear()

Removes all elements from this set, leaving it empty.

Contains(Object) Contains(Object)

Searches this set for the specified object.

ContainsAll(ICollection) ContainsAll(ICollection)
Equals(Object) Equals(Object)

Compares the specified object to this set, and returns true if they represent the same object using a class specific comparison.

GetHashCode() GetHashCode()

Returns the hash code for this set.

Iterator() Iterator()

Returns an iterator on the elements of this set.

Remove(Object) Remove(Object)

Removes the specified object from this set.

RemoveAll(ICollection) RemoveAll(ICollection)
RetainAll(ICollection) RetainAll(ICollection)
Size() Size()

Returns the number of elements in this set.

ToArray() ToArray()

Returns an array containing all elements contained in this set.

ToArray(Object[]) ToArray(Object[])

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
ToEnumerable(IIterable) ToEnumerable(IIterable)
ToEnumerable<T>(IIterable) ToEnumerable<T>(IIterable)

Applies to