| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
package smetana.core; |
| 38 |
|
| 39 |
import smetana.core.amiga.Area; |
| 40 |
|
| 41 |
public class ArrayOfInteger implements __array_of_integer__ { |
| 42 |
|
| 43 |
private final int[] data; |
| 44 |
private final int position; |
| 45 |
|
| 46 |
public ArrayOfInteger(int[] data, int position) { |
| 47 |
this.data = data; |
| 48 |
this.position = position; |
| 49 |
|
| 50 |
} |
| 51 |
|
| 52 |
public String getUID36() { |
| 53 |
throw new UnsupportedOperationException(); |
| 54 |
} |
| 55 |
|
| 56 |
public void swap(int i, int j) { |
| 57 |
throw new UnsupportedOperationException(); |
| 58 |
} |
| 59 |
|
| 60 |
public void realloc(int nb) { |
| 61 |
throw new UnsupportedOperationException(); |
| 62 |
} |
| 63 |
|
| 64 |
public int comparePointerInternal(__array_of_integer__ other) { |
| 65 |
throw new UnsupportedOperationException(); |
| 66 |
} |
| 67 |
|
| 68 |
public final __array_of_integer__ move(int delta) { |
| 69 |
return plus(delta); |
| 70 |
} |
| 71 |
|
| 72 |
public __array_of_integer__ plus(int delta) { |
| 73 |
return new ArrayOfInteger(data, position + delta); |
| 74 |
} |
| 75 |
|
| 76 |
public Area getInternal(int idx) { |
| 77 |
throw new UnsupportedOperationException(); |
| 78 |
} |
| 79 |
|
| 80 |
public void memcopyFrom(Area source) { |
| 81 |
throw new UnsupportedOperationException(); |
| 82 |
} |
| 83 |
|
| 84 |
public int getInt() { |
| 85 |
return data[position]; |
| 86 |
} |
| 87 |
|
| 88 |
public void setInt(int value) { |
| 89 |
data[position] = value; |
| 90 |
} |
| 91 |
|
| 92 |
} |