Advertisement
Guest User

Untitled

a guest
Nov 9th, 2015
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.67 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.Collection;
  3. import java.util.Set;
  4. import kotlin.CollectionsKt;
  5. import kotlin.jvm.internal.Intrinsics;
  6. import kotlin.jvm.internal.KotlinClass;
  7. import org.jetbrains.annotations.NotNull;
  8.  
  9. @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")
  10. public final class ArrayToSet
  11. {
  12.   public static final ArrayToSet INSTANCE;
  13.   /**
  14.    * @deprecated
  15.    */
  16.   public static final ArrayToSet INSTANCE$;
  17.  
  18.   private ArrayToSet()
  19.   {
  20.     INSTANCE = (ArrayToSet)this;
  21.     INSTANCE$ = (ArrayToSet)this;
  22.   }
  23.  
  24.   static
  25.   {
  26.     new ArrayToSet();
  27.   }
  28.  
  29.   @NotNull
  30.   public final <T> Set<T> arrayToSet(@NotNull T[] a)
  31.   {
  32.     Intrinsics.checkParameterIsNotNull(a, "a");Object[] arrayOfObject1 = a;
  33.     int $i$f$filter;
  34.     Object[] $receiver;
  35.     Object[] arrayOfObject2 = $receiver;Collection localCollection1 = (Collection)new ArrayList();
  36.     int $i$f$filterTo;
  37.     Collection destination;
  38.     Object[] $receiver;
  39.     for (int i = 0; i < $receiver.length; i++)
  40.     {
  41.       Object element = $receiver[i];Object it = element;
  42.       int $i$a$1;
  43.       if ((it != null ? 1 : 0) != 0) {
  44.         destination.add(element);
  45.       }
  46.     }
  47.     return CollectionsKt.toSet(
  48.    
  49.       (Iterable)destination);
  50.   }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement