Test
This commit is contained in:
@@ -15,7 +15,7 @@ import java.util.concurrent.Flow.Subscription;
|
||||
*
|
||||
* @author le
|
||||
*/
|
||||
public class WertAdapter implements Subscriber<Integer[]>
|
||||
public class WertAdapter implements Subscriber<Integer>
|
||||
{
|
||||
private ZahlenView view;
|
||||
private Zahlengenerator model;
|
||||
@@ -35,23 +35,12 @@ public class WertAdapter implements Subscriber<Integer[]>
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNext(Integer item[])
|
||||
public void onNext(Integer item)
|
||||
{
|
||||
String strWert = String.valueOf(item[0]);
|
||||
|
||||
switch(item[1]){
|
||||
case 1:
|
||||
view.getLblZahl1().setText(strWert);
|
||||
break;
|
||||
case 2:
|
||||
view.getLblZahl2().setText(strWert);
|
||||
break;
|
||||
case 3:
|
||||
view.getLblZahl3().setText(strWert);
|
||||
break;
|
||||
}
|
||||
|
||||
String strWert = String.valueOf(item);
|
||||
view.getLblZahl1().setText(strWert);
|
||||
this.subscription.request(1);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user