mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
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:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user