Skip to content

Commit 3a346b8

Browse files
author
Kaleidox
committed
introduce GameManager
1 parent e48def7 commit 3a346b8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.comroid.api.text;
2+
3+
import org.jspecify.annotations.NonNull;
4+
5+
public interface WrappedCharSequence extends CharSequence {
6+
@Override
7+
default int length() {
8+
return toString().length();
9+
}
10+
11+
@Override
12+
default char charAt(int index) {
13+
return toString().charAt(index);
14+
}
15+
16+
@Override
17+
@NonNull
18+
default CharSequence subSequence(int start, int end) {
19+
return toString().subSequence(start, end);
20+
}
21+
}

0 commit comments

Comments
 (0)