added wrapper for Hashtable.size()-method
This commit is contained in:
parent
ce27d2124b
commit
8e96f6fee8
1 changed files with 6 additions and 0 deletions
|
@ -147,6 +147,12 @@ public final class SystemProperties extends Properties {
|
||||||
return props.elements();
|
return props.elements();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int size() {
|
||||||
|
if (System.currentTimeMillis () - lastcheck > cacheTime)
|
||||||
|
checkFile ();
|
||||||
|
return props.size();
|
||||||
|
}
|
||||||
|
|
||||||
public String toString () {
|
public String toString () {
|
||||||
return props.toString ();
|
return props.toString ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue