IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
SetExtensions.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
3namespace java.util
4{
5
6 public static class SetExtensions
7 {
8
15 public static ISet<T> AsSet<T>(this Set set) => set switch
16 {
17 ISet<T> i => i,
18 TreeSet i => new TreeSetWrapper<T>(i),
19 Set i => new SetWrapper<T>(i),
20 };
21
22 }
23
24}
static ISet< T > AsSet< T >(this Set set)
Returns a ISet<T> that wraps the specified Set.