import type { JavaIterable } from '../../java/lang/JavaIterable'; import type { JavaIterator } from './JavaIterator'; export interface Collection extends JavaIterable { size(): number; isEmpty(): boolean; contains(o: any): boolean; [Symbol.iterator](): Iterator; iterator(): JavaIterator; toArray(): Array; toArray(a: Array): Array; add(e: E | null): boolean; remove(o: any): boolean; containsAll(c: Collection | null): boolean; addAll(c: Collection | null): boolean; removeAll(c: Collection | null): boolean; retainAll(c: Collection | null): boolean; clear(): void; equals(obj: any): boolean; hashCode(): number; } export declare function cast_java_util_Collection(obj: unknown): Collection; //# sourceMappingURL=Collection.d.ts.map