Commit 42f88a1d authored by Per Bothner's avatar Per Bothner

* IString.java (isEmpty): New method, added for Java 15.

parent 340dc8ab
Pipeline #216210983 failed with stage
in 4 minutes and 49 seconds
2020-11-14 Per Bothner <per@bothner.com>
* IString.java (isEmpty): New method, added for Java 15.
2020-03-11 Per Bothner <per@bothner.com>
* GeneralArray.java: Fix calculation of 'simple' property.
......
......@@ -128,6 +128,7 @@ public class IString extends AbstractSequence<Char>
public char charAt(int i) { return str.charAt(i); }
public String toString() { return str; }
public int length() { return str.length(); }
public boolean isEmpty() { return str.isEmpty(); } // Java 15
/** Substring using offsets in code-units (16-bit chars). */
public IString subSequence(int from, int to) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment