Advertisement
Guest User

Untitled

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