projects
/
org.ibex.util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a5fc52
)
copyInto() now returns its argument
author
adam
<adam@megacz.com>
Tue, 20 Jul 2004 08:20:32 +0000
(08:20 +0000)
committer
adam
<adam@megacz.com>
Tue, 20 Jul 2004 08:20:32 +0000
(08:20 +0000)
darcs-hash:
20040720082032
-5007d-
b226fa2e481324db5f15a8f2fbed612ccb8ff461
.gz
src/org/ibex/util/Vec.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/util/Vec.java
b/src/org/ibex/util/Vec.java
index
ffe7cfd
..
d3fe00e
100644
(file)
--- a/
src/org/ibex/util/Vec.java
+++ b/
src/org/ibex/util/Vec.java
@@
-86,9
+86,10
@@
public final class Vec implements Serializable {
size = newSize;
}
- public void copyInto(Object[] out) {
+ public Object[] copyInto(Object[] out) {
for(int i=0; i<size; i++)
out[i] = store[i];
+ return out;
}
public void fromArray(Object[] in) {
@@
-288,9
+289,10
@@
public final class Vec implements Serializable {
size = newSize;
}
- public void copyInto(int[] out) {
+ public int[] copyInto(int[] out) {
for(int i=0; i<size; i++)
out[i] = store[i];
+ return out;
}
public void fromArray(int[] in) {