Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- import java.util.Collection;
- import java.util.Set;
- import kotlin.CollectionsKt;
- import kotlin.jvm.internal.Intrinsics;
- import kotlin.jvm.internal.KotlinClass;
- import org.jetbrains.annotations.NotNull;
- @KotlinClass(version={1, 0, 0}, abiVersion=32, data={"\033\025\tA\"A\003\002\021\001)\021\001B\001\006\003!\tR!\001\003\002\013\005A\t\"\002\001\005G\006a\001!G\001\031\002\005\036A!A)\004\003!\tQu\005E\002\033\021I!!C\001%\006a\021\021C\001\003\001\021\013Ir\001C\002\016\013%\031A\021A\005\002I\013A:!U\002\002\021\021\001"}, strings={"Lcoffee/cypher/kotlintest/ArrayToSet;", "", "()V", "arrayToSet", "", "T", "a", "", "([Ljava/lang/Object;)Ljava/util/Set;"}, moduleName="KotlinTest")
- public final class ArrayToSet
- {
- public static final ArrayToSet INSTANCE;
- /**
- * @deprecated
- */
- public static final ArrayToSet INSTANCE$;
- private ArrayToSet()
- {
- INSTANCE = (ArrayToSet)this;
- INSTANCE$ = (ArrayToSet)this;
- }
- static
- {
- new ArrayToSet();
- }
- @NotNull
- public final <T> Set<T> arrayToSet(@NotNull T[] a)
- {
- Intrinsics.checkParameterIsNotNull(a, "a");Object[] arrayOfObject1 = a;
- int $i$f$filter;
- Object[] $receiver;
- Object[] arrayOfObject2 = $receiver;Collection localCollection1 = (Collection)new ArrayList();
- int $i$f$filterTo;
- Collection destination;
- Object[] $receiver;
- for (int i = 0; i < $receiver.length; i++)
- {
- Object element = $receiver[i];Object it = element;
- int $i$a$1;
- if ((it != null ? 1 : 0) != 0) {
- destination.add(element);
- }
- }
- return CollectionsKt.toSet(
- (Iterable)destination);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement