Advertisement
slik1977

Task2Scala+Java+Evtyukhov

Feb 24th, 2022
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.15 KB | None | 0 0
  1. //decompiled from Task2S$.class
  2. import scala.Predef.;
  3. import scala.runtime.BoxesRunTime;
  4.  
  5. public final class Task2S$ {
  6.    public static final Task2S$ MODULE$ = new Task2S$();
  7.  
  8.    static {
  9.       MODULE$.printName("John", "Smith");
  10.       MODULE$.printName("John", "Smith");
  11.       String x$1 = "Smith";
  12.       String x$2 = "John";
  13.       MODULE$.printName("John", "Smith");
  14.    }
  15.  
  16.    public void printName(final String first, final String last) {
  17.       .MODULE$.println((new StringBuilder(1)).append(first).append(" ").append(last).toString());
  18.    }
  19.  
  20.    public void printIterator() {
  21.       Task2S.IntIterator iterator = new Task2S.IntIterator(10);
  22.       .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
  23.       .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
  24.       .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
  25.       .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
  26.    }
  27.  
  28.    private Task2S$() {
  29.    }
  30. }
  31.  
  32.         //decompiled from Task2S.class
  33. import scala.reflect.ScalaSignature;
  34. import scala.runtime.BoxesRunTime;
  35.  
  36. @ScalaSignature(
  37.    bytes = "\u0006\u0005y;Q\u0001E\t\t\u0002Q1QAF\t\t\u0002]AQAH\u0001\u0005\u0002}AQ\u0001I\u0001\u0005\u0002\u00052q\u0001N\u0001\u0011\u0002G\u0005Q\u0007C\u00038\t\u0019\u0005\u0001\bC\u0003=\t\u0019\u0005QH\u0002\u0003J\u0003\u0001Q\u0005\u0002\u0003)\b\u0005\u0003\u0005\u000b\u0011B'\t\u000by9A\u0011A)\t\u000fQ;\u0001\u0019!C\u0005+\"9ak\u0002a\u0001\n\u00139\u0006B\u0002.\bA\u0003&Q\nC\u00038\u000f\u0011\u0005\u0003\bC\u0003=\u000f\u0011\u00053\fC\u0003]\u0003\u0011\u0005Q,\u0001\u0004UCN\\'g\u0015\u0006\u0002%\u00059A(Z7qift4\u0001\u0001\t\u0003+\u0005i\u0011!\u0005\u0002\u0007)\u0006\u001c8NM*\u0014\u0005\u0005A\u0002CA\r\u001d\u001b\u0005Q\"\"A\u000e\u0002\u000bM\u001c\u0017\r\\1\n\u0005uQ\"AB!osJ+g-\u0001\u0004=S:LGO\u0010\u000b\u0002)\u0005I\u0001O]5oi:\u000bW.\u001a\u000b\u0004E\u0015\u0012\u0004CA\r$\u0013\t!#D\u0001\u0003V]&$\b\"\u0002\u0014\u0004\u0001\u00049\u0013!\u00024jeN$\bC\u0001\u00150\u001d\tIS\u0006\u0005\u0002+55\t1F\u0003\u0002-'\u00051AH]8pizJ!A\f\u000e\u0002\rA\u0013X\rZ3g\u0013\t\u0001\u0014G\u0001\u0004TiJLgn\u001a\u0006\u0003]iAQaM\u0002A\u0002\u001d\nA\u0001\\1ti\nA\u0011\n^3sCR|'/\u0006\u00027\u0001N\u0011A\u0001G\u0001\bQ\u0006\u001ch*\u001a=u+\u0005I\u0004CA\r;\u0013\tY$DA\u0004C_>dW-\u00198\u0002\t9,\u0007\u0010\u001e\u000b\u0002}A\u0011q\b\u0011\u0007\u0001\t\u0015\tEA1\u0001C\u0005\u0005\t\u0015CA\"G!\tIB)\u0003\u0002F5\t9aj\u001c;iS:<\u0007CA\rH\u0013\tA%DA\u0002B]f\u00141\"\u00138u\u0013R,'/\u0019;peN\u0019q\u0001G&\u0011\u00071#Q*D\u0001\u0002!\tIb*\u0003\u0002P5\t\u0019\u0011J\u001c;\u0002\u0005Q|GC\u0001*T!\tau\u0001C\u0003Q\u0013\u0001\u0007Q*A\u0004dkJ\u0014XM\u001c;\u0016\u00035\u000b1bY;se\u0016tGo\u0018\u0013fcR\u0011!\u0005\u0017\u0005\b3.\t\t\u00111\u0001N\u0003\rAH%M\u0001\tGV\u0014(/\u001a8uAQ\tQ*A\u0007qe&tG/\u0013;fe\u0006$xN\u001d\u000b\u0002E\u0001"
  38. )
  39. public final class Task2S {
  40.    public static void printIterator() {
  41.       Task2S$.MODULE$.printIterator();
  42.    }
  43.  
  44.    public static void printName(final String first, final String last) {
  45.       Task2S$.MODULE$.printName(first, last);
  46.    }
  47.  
  48.    public static class IntIterator implements Task2S.Iterator {
  49.       private final int to;
  50.       private int current;
  51.  
  52.       private int current() {
  53.          return this.current;
  54.       }
  55.  
  56.       private void current_$eq(final int x$1) {
  57.          this.current = x$1;
  58.       }
  59.  
  60.       public boolean hasNext() {
  61.          return this.current() < this.to;
  62.       }
  63.  
  64.       public int next() {
  65.          int var10000;
  66.          if (this.hasNext()) {
  67.             int t = this.current();
  68.             this.current_$eq(this.current() + 1);
  69.             var10000 = t;
  70.          } else {
  71.             var10000 = 0;
  72.          }
  73.  
  74.          return var10000;
  75.       }
  76.  
  77.       // $FF: synthetic method
  78.       // $FF: bridge method
  79.       public Object next() {
  80.          return BoxesRunTime.boxToInteger(this.next());
  81.       }
  82.  
  83.       public IntIterator(final int to) {
  84.          this.to = to;
  85.          this.current = 0;
  86.       }
  87.    }
  88.  
  89.    public interface Iterator {
  90.       boolean hasNext();
  91.  
  92.       Object next();
  93.    }
  94. }
  95.  
  96.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement