blob: 125b6f6290d73e78c48c392dafe283a5657b76b9 (
plain) (
blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* __ *\
** ________ ___ / / ___ Scala API **
** / __/ __// _ | / / / _ | (c) 2002, LAMP/EPFL **
** __\ \/ /__/ __ |/ /__/ __ | **
** /____/\___/_/ |_/____/_/ | | **
** |/ **
\* */
// $OldId: Array.java,v 1.9 2002/03/18 16:55:10 zenger Exp $
// $Id$
package scala;
/** @meta class [?T] extends scala.Function1[scala.Int, ?T];
*/
public abstract class Array implements Function1 {
/** @meta constr (scala.Int);
*/
public Array(int n) {
}
public boolean[] asBooleanArray() {
throw new ClassCastException();
}
public byte[] asByteArray() {
throw new ClassCastException();
}
public short[] asShortArray() {
throw new ClassCastException();
}
public char[] asCharArray() {
throw new ClassCastException();
}
public int[] asIntArray() {
throw new ClassCastException();
}
public long[] asLongArray() {
throw new ClassCastException();
}
public float[] asFloatArray() {
throw new ClassCastException();
}
public double[] asDoubleArray() {
throw new ClassCastException();
}
/** @meta method () scala.Array[scala.Any];
*/
public java.lang.Object[] asObjectArray() {
throw new ClassCastException();
}
public java.lang.Object apply(java.lang.Object i) {
return apply(((Number) i).intValue());
}
/** @meta method (scala.Int) ?T;
*/
public abstract java.lang.Object apply(int i);
/** @meta method (scala.Int, ?T) scala.Unit;
*/
public abstract void update(int i, java.lang.Object x);
/** @meta method []scala.Int;
*/
public abstract int length();
}
|