import { JavaClass, BasicOrJavaType } from "java-bridge"; import { Integer as java_lang_Integer } from "./../lang/Integer"; import { Long as java_lang_Long } from "./../lang/Long"; import { Class as java_lang_Class } from "./../lang/Class"; /** * This class just defines types, you should import Buffer instead of this. * This was generated by java-bridge. * You should probably not edit this. */ export declare class BufferClass extends JavaClass { /** * @param var0 original type: 'int' * @return original return type: 'java.nio.Buffer' */ limit(var0: java_lang_Integer | number): Promise; /** * @param var0 original type: 'int' * @return original return type: 'java.nio.Buffer' */ limitSync(var0: java_lang_Integer | number): Buffer | null; /** * @return original return type: 'int' */ limit(): Promise; /** * @return original return type: 'int' */ limitSync(): number; /** * @return original return type: 'java.nio.Buffer' */ clear(): Promise; /** * @return original return type: 'java.nio.Buffer' */ clearSync(): Buffer | null; /** * @return original return type: 'int' */ remaining(): Promise; /** * @return original return type: 'int' */ remainingSync(): number; /** * @return original return type: 'boolean' */ isDirect(): Promise; /** * @return original return type: 'boolean' */ isDirectSync(): boolean; /** * @return original return type: 'boolean' */ hasArray(): Promise; /** * @return original return type: 'boolean' */ hasArraySync(): boolean; /** * @return original return type: 'java.lang.Object' */ array(): Promise; /** * @return original return type: 'java.lang.Object' */ arraySync(): BasicOrJavaType | null; /** * @param var0 original type: 'int' * @return original return type: 'java.nio.Buffer' */ position(var0: java_lang_Integer | number): Promise; /** * @param var0 original type: 'int' * @return original return type: 'java.nio.Buffer' */ positionSync(var0: java_lang_Integer | number): Buffer | null; /** * @return original return type: 'int' */ position(): Promise; /** * @return original return type: 'int' */ positionSync(): number; /** * @return original return type: 'int' */ arrayOffset(): Promise; /** * @return original return type: 'int' */ arrayOffsetSync(): number; /** * @return original return type: 'int' */ capacity(): Promise; /** * @return original return type: 'int' */ capacitySync(): number; /** * @return original return type: 'java.nio.Buffer' */ mark(): Promise; /** * @return original return type: 'java.nio.Buffer' */ markSync(): Buffer | null; /** * @return original return type: 'java.nio.Buffer' */ reset(): Promise; /** * @return original return type: 'java.nio.Buffer' */ resetSync(): Buffer | null; /** * @return original return type: 'java.nio.Buffer' */ flip(): Promise; /** * @return original return type: 'java.nio.Buffer' */ flipSync(): Buffer | null; /** * @return original return type: 'java.nio.Buffer' */ rewind(): Promise; /** * @return original return type: 'java.nio.Buffer' */ rewindSync(): Buffer | null; /** * @return original return type: 'boolean' */ hasRemaining(): Promise; /** * @return original return type: 'boolean' */ hasRemainingSync(): boolean; /** * @return original return type: 'boolean' */ isReadOnly(): Promise; /** * @return original return type: 'boolean' */ isReadOnlySync(): boolean; /** * @param var0 original type: 'long' * @param var1 original type: 'int' * @return original return type: 'void' */ wait(var0: java_lang_Long | bigint | number, var1: java_lang_Integer | number): Promise; /** * @param var0 original type: 'long' * @param var1 original type: 'int' * @return original return type: 'void' */ waitSync(var0: java_lang_Long | bigint | number, var1: java_lang_Integer | number): void; /** * @param var0 original type: 'long' * @return original return type: 'void' */ wait(var0: java_lang_Long | bigint | number): Promise; /** * @param var0 original type: 'long' * @return original return type: 'void' */ waitSync(var0: java_lang_Long | bigint | number): void; /** * @return original return type: 'void' */ wait(): Promise; /** * @return original return type: 'void' */ waitSync(): void; /** * @param var0 original type: 'java.lang.Object' * @return original return type: 'boolean' */ equals(var0: BasicOrJavaType | null): Promise; /** * @param var0 original type: 'java.lang.Object' * @return original return type: 'boolean' */ equalsSync(var0: BasicOrJavaType | null): boolean; /** * @return original return type: 'java.lang.String' */ toString(): Promise; /** * @return original return type: 'java.lang.String' */ toStringSync(): string; /** * @return original return type: 'int' */ hashCode(): Promise; /** * @return original return type: 'int' */ hashCodeSync(): number; /** * @return original return type: 'java.lang.Class' */ getClass(): Promise; /** * @return original return type: 'java.lang.Class' */ getClassSync(): java_lang_Class; /** * @return original return type: 'void' */ notify(): Promise; /** * @return original return type: 'void' */ notifySync(): void; /** * @return original return type: 'void' */ notifyAll(): Promise; /** * @return original return type: 'void' */ notifyAllSync(): void; } declare const Buffer_base: typeof BufferClass; /** * Class java.nio.Buffer. * * This actually imports the java class for further use. * The class BufferClass only defines types, this is the class you should actually import. * Please note that this statement imports the underlying java class at runtime, which may take a while. * This was generated by java-bridge. * You should probably not edit this. */ export declare class Buffer extends Buffer_base { /** * Private constructor to prevent instantiation * as this is either an abstract class or an interface */ private constructor(); } export default Buffer; //# sourceMappingURL=Buffer.d.ts.map