projects
/
org.ibex.util.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix ThreadPool bug
[org.ibex.util.git]
/
src
/
org
/
ibex
/
util
/
Hash.java
diff --git
a/src/org/ibex/util/Hash.java
b/src/org/ibex/util/Hash.java
index
ae95978
..
40729d8
100644
(file)
--- a/
src/org/ibex/util/Hash.java
+++ b/
src/org/ibex/util/Hash.java
@@
-46,6
+46,17
@@
public class Hash implements java.io.Serializable {
/** the number of entries with a non-null value */
public int size() { return size; }
/** the number of entries with a non-null value */
public int size() { return size; }
+ public Object[] dumpkeys() {
+ return dumpkeys(new Object[size]);
+ }
+ public Object[] dumpkeys(Object[] ret) {
+ int j = 0;
+ for(int i=0; i<keys1.length; i++)
+ if (keys1[i]!=null)
+ ret[j++] = keys1[i];
+ return ret;
+ }
+
public Object[] vals() {
Object[] ret = new Object[size()];
int j = 0;
public Object[] vals() {
Object[] ret = new Object[size()];
int j = 0;
@@
-67,7
+78,7
@@
public class Hash implements java.io.Serializable {
}
/** returns all the primary keys in the table */
}
/** returns all the primary keys in the table */
- public Enumeration keys() { return new HashEnum(); }
+ public java.util.Enumeration enumerateKeys() { return new HashEnum(); }
public Hash() { this(25, 3); }
public Hash(int initialcapacity, int loadFactor) {
public Hash() { this(25, 3); }
public Hash(int initialcapacity, int loadFactor) {