Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //decompiled from Task2S$.class
- import scala.Predef.;
- import scala.runtime.BoxesRunTime;
- public final class Task2S$ {
- public static final Task2S$ MODULE$ = new Task2S$();
- static {
- MODULE$.printName("John", "Smith");
- MODULE$.printName("John", "Smith");
- String x$1 = "Smith";
- String x$2 = "John";
- MODULE$.printName("John", "Smith");
- }
- public void printName(final String first, final String last) {
- .MODULE$.println((new StringBuilder(1)).append(first).append(" ").append(last).toString());
- }
- public void printIterator() {
- Task2S.IntIterator iterator = new Task2S.IntIterator(10);
- .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
- .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
- .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
- .MODULE$.println(BoxesRunTime.boxToInteger(iterator.next()));
- }
- private Task2S$() {
- }
- }
- //decompiled from Task2S.class
- import scala.reflect.ScalaSignature;
- import scala.runtime.BoxesRunTime;
- @ScalaSignature(
- 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"
- )
- public final class Task2S {
- public static void printIterator() {
- Task2S$.MODULE$.printIterator();
- }
- public static void printName(final String first, final String last) {
- Task2S$.MODULE$.printName(first, last);
- }
- public static class IntIterator implements Task2S.Iterator {
- private final int to;
- private int current;
- private int current() {
- return this.current;
- }
- private void current_$eq(final int x$1) {
- this.current = x$1;
- }
- public boolean hasNext() {
- return this.current() < this.to;
- }
- public int next() {
- int var10000;
- if (this.hasNext()) {
- int t = this.current();
- this.current_$eq(this.current() + 1);
- var10000 = t;
- } else {
- var10000 = 0;
- }
- return var10000;
- }
- // $FF: synthetic method
- // $FF: bridge method
- public Object next() {
- return BoxesRunTime.boxToInteger(this.next());
- }
- public IntIterator(final int to) {
- this.to = to;
- this.current = 0;
- }
- }
- public interface Iterator {
- boolean hasNext();
- Object next();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement