Share via


EnumSet.ComplementOf(EnumSet) Method

Definition

Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.

[Android.Runtime.Register("complementOf", "(Ljava/util/EnumSet;)Ljava/util/EnumSet;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })]
public static Java.Util.EnumSet? ComplementOf (Java.Util.EnumSet? s);
[<Android.Runtime.Register("complementOf", "(Ljava/util/EnumSet;)Ljava/util/EnumSet;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })>]
static member ComplementOf : Java.Util.EnumSet -> Java.Util.EnumSet

Parameters

s
EnumSet

the enum set from whose complement to initialize this enum set

Returns

The complement of the specified set in this set

Attributes

Remarks

Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.

Java documentation for java.util.EnumSet.complementOf(java.util.EnumSet<E>).

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.

Applies to