java/lang: add interface classes

This commit is contained in:
Zack Buhman 2025-01-12 22:56:54 -06:00
parent 7aaa5ba4b1
commit 389f4691e2
7 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package java.lang;
import java.io.IOException;
public interface Appendable {
Appendable append(char c) throws IOException;
Appendable append(CharSequence csq) throws IOException;
Appendable append(CharSequence csq, int start, int end) throws IOException;
}

View File

@ -0,0 +1,5 @@
package java.lang;
public interface AutoCloseable {
void close() throws Exception;
}

View File

@ -0,0 +1,11 @@
package java.lang;
public interface CharSequence {
char charAt(int index);
int length();
CharSequence subSequence(int start, int end);
public String toString();
}

View File

@ -0,0 +1,4 @@
package java.lang;
public interface Cloneable {
}

View File

@ -0,0 +1,5 @@
package java.lang;
public interface Comparable<T> {
public int compareTo(T o);
}

View File

@ -0,0 +1,5 @@
package java.lang;
public interface Iterable<T> {
Iterator<T> iterator();
}

View File

@ -0,0 +1,5 @@
package java.lang;
public interface Runnable {
void run();
}