java/lang: add interface classes
This commit is contained in:
parent
7aaa5ba4b1
commit
389f4691e2
11
classes/java/lang/Appendable.java
Normal file
11
classes/java/lang/Appendable.java
Normal 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;
|
||||
}
|
5
classes/java/lang/AutoCloseable.java
Normal file
5
classes/java/lang/AutoCloseable.java
Normal file
@ -0,0 +1,5 @@
|
||||
package java.lang;
|
||||
|
||||
public interface AutoCloseable {
|
||||
void close() throws Exception;
|
||||
}
|
11
classes/java/lang/CharSequence.java
Normal file
11
classes/java/lang/CharSequence.java
Normal 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();
|
||||
}
|
4
classes/java/lang/Cloneable.java
Normal file
4
classes/java/lang/Cloneable.java
Normal file
@ -0,0 +1,4 @@
|
||||
package java.lang;
|
||||
|
||||
public interface Cloneable {
|
||||
}
|
5
classes/java/lang/Comparable.java
Normal file
5
classes/java/lang/Comparable.java
Normal file
@ -0,0 +1,5 @@
|
||||
package java.lang;
|
||||
|
||||
public interface Comparable<T> {
|
||||
public int compareTo(T o);
|
||||
}
|
5
classes/java/lang/Iterable.java
Normal file
5
classes/java/lang/Iterable.java
Normal file
@ -0,0 +1,5 @@
|
||||
package java.lang;
|
||||
|
||||
public interface Iterable<T> {
|
||||
Iterator<T> iterator();
|
||||
}
|
5
classes/java/lang/Runnable.java
Normal file
5
classes/java/lang/Runnable.java
Normal file
@ -0,0 +1,5 @@
|
||||
package java.lang;
|
||||
|
||||
public interface Runnable {
|
||||
void run();
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user