Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
CopyOf(EnumSet) |
Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any). |
CopyOf(ICollection) |
Creates an enum set initialized from the specified collection. |
Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).
[Android.Runtime.Register("copyOf", "(Ljava/util/EnumSet;)Ljava/util/EnumSet;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })]
public static Java.Util.EnumSet? CopyOf(Java.Util.EnumSet? s);
[<Android.Runtime.Register("copyOf", "(Ljava/util/EnumSet;)Ljava/util/EnumSet;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })>]
static member CopyOf : Java.Util.EnumSet -> Java.Util.EnumSet
the enum set from which to initialize this enum set
A copy of the specified enum set.
Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).
Java documentation for java.util.EnumSet.copyOf(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.
Creates an enum set initialized from the specified collection.
[Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/EnumSet;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })]
public static Java.Util.EnumSet? CopyOf(System.Collections.ICollection? c);
[<Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/EnumSet;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E extends java.lang.Enum<E>" })>]
static member CopyOf : System.Collections.ICollection -> Java.Util.EnumSet
the collection from which to initialize this enum set
An enum set initialized from the given collection.
Creates an enum set initialized from the specified collection. If the specified collection is an EnumSet
instance, this static factory method behaves identically to #copyOf(EnumSet)
. Otherwise, the specified collection must contain at least one element (in order to determine the new enum set's element type).
Java documentation for java.util.EnumSet.copyOf(java.util.Collection<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.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in