add a few classes and methods to the classpath

Add java.lang.CharSequence, java.util.AbstractSet,
java.util.AbstractCollection, Collections.unmodifiableSet,
 System.getProperty(String,String), etc.
This commit is contained in:
Zsombor
2008-07-03 09:16:32 -06:00
committed by Joel Dice
parent 107ac01304
commit e3fd0d9c7d
10 changed files with 226 additions and 14 deletions

View File

@ -10,7 +10,7 @@
package java.lang;
public class StringBuilder {
public class StringBuilder implements CharSequence {
private static final int BufferSize = 32;
private Cell chain;
@ -288,4 +288,15 @@ public class StringBuilder {
this.next = next;
}
}
public String substring(int start, int end) {
int len = end-start;
char[] buf = new char[len];
getChars(start, len, buf,0 );
return new String(buf, 0, len, false);
}
public CharSequence subSequence(int start, int end) {
return substring(start, end);
}
}