link start!
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
public interface Collection {
|
||||
boolean add(Object obj);
|
||||
|
||||
boolean addAll(Collection collection);
|
||||
|
||||
void clear();
|
||||
|
||||
boolean contains(Object obj);
|
||||
|
||||
int hashCode();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
Iterator iterator();
|
||||
|
||||
boolean remove(Object obj);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
public interface FileAccess {
|
||||
public static final int ELEMENT_READ = 1;
|
||||
public static final int ELEMENT_READWRITE = 7;
|
||||
public static final int ELEMENT_SEEKABLEREAD = 3;
|
||||
public static final int ELEMENT_TRUNCATE = 8;
|
||||
public static final int ELEMENT_WRITE = 4;
|
||||
|
||||
public interface FileSync {
|
||||
void sync() throws IOException;
|
||||
}
|
||||
|
||||
void createParentDirs(String str);
|
||||
|
||||
FileSync getFileSync(OutputStream outputStream) throws IOException;
|
||||
|
||||
boolean isStreamElement(String str);
|
||||
|
||||
InputStream openInputStreamElement(String str) throws IOException;
|
||||
|
||||
OutputStream openOutputStreamElement(String str) throws IOException;
|
||||
|
||||
void removeElement(String str);
|
||||
|
||||
void renameElement(String str, String str2);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
public interface HsqlHeap {
|
||||
void add(Object obj) throws IllegalArgumentException, RuntimeException;
|
||||
|
||||
void clear();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
boolean isFull();
|
||||
|
||||
Object peek();
|
||||
|
||||
Object remove();
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
public interface HsqlList extends Collection {
|
||||
void add(int i, Object obj);
|
||||
|
||||
boolean add(Object obj);
|
||||
|
||||
Object get(int i);
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
Iterator iterator();
|
||||
|
||||
Object remove(int i);
|
||||
|
||||
Object set(int i, Object obj);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
public interface IntLookup {
|
||||
int add(int i, int i2);
|
||||
|
||||
int lookupFirstEqual(int i) throws NoSuchElementException;
|
||||
|
||||
int lookupFirstGreaterEqual(int i) throws NoSuchElementException;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
public interface Iterator {
|
||||
boolean hasNext();
|
||||
|
||||
Object next() throws NoSuchElementException;
|
||||
|
||||
int nextInt() throws NoSuchElementException;
|
||||
|
||||
long nextLong() throws NoSuchElementException;
|
||||
|
||||
void remove() throws NoSuchElementException;
|
||||
|
||||
void setValue(Object obj);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
public interface Set extends Collection {
|
||||
boolean add(Object obj);
|
||||
|
||||
void clear();
|
||||
|
||||
boolean contains(Object obj);
|
||||
|
||||
boolean equals(Object obj);
|
||||
|
||||
Object get(Object obj);
|
||||
|
||||
int hashCode();
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
Iterator iterator();
|
||||
|
||||
boolean remove(Object obj);
|
||||
|
||||
int size();
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface Storage {
|
||||
void close() throws IOException;
|
||||
|
||||
long getFilePointer() throws IOException;
|
||||
|
||||
boolean isReadOnly();
|
||||
|
||||
long length() throws IOException;
|
||||
|
||||
int read() throws IOException;
|
||||
|
||||
void read(byte[] bArr, int i, int i2) throws IOException;
|
||||
|
||||
int readInt() throws IOException;
|
||||
|
||||
long readLong() throws IOException;
|
||||
|
||||
void seek(long j) throws IOException;
|
||||
|
||||
void synch();
|
||||
|
||||
boolean wasNio();
|
||||
|
||||
void write(byte[] bArr, int i, int i2) throws IOException;
|
||||
|
||||
void writeInt(int i) throws IOException;
|
||||
|
||||
void writeLong(long j) throws IOException;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.hsqldb.lib;
|
||||
|
||||
public interface ThreadFactory {
|
||||
Thread newThread(Runnable runnable);
|
||||
}
|
||||
Reference in New Issue
Block a user