jsts
Version:
A JavaScript library of spatial predicates and functions for processing geometry
48 lines (47 loc) • 1.43 kB
TypeScript
/**
* @see http://download.oracle.com/javase/6/docs/api/java/util/Collection.html
*/
export default class Collection {
/**
* Ensures that this collection contains the specified element (optional
* operation).
* @param {Object} e
* @return {boolean}
*/
add(): boolean;
/**
* Appends all of the elements in the specified collection to the end of this
* list, in the order that they are returned by the specified collection's
* iterator (optional operation).
* @param {javascript.util.Collection} c
* @return {boolean}
*/
addAll(): boolean;
/**
* Returns true if this collection contains no elements.
* @return {boolean}
*/
isEmpty(): boolean;
/**
* Returns an iterator over the elements in this collection.
* @return {javascript.util.Iterator}
*/
iterator(): javascript.util.Iterator;
/**
* Returns an iterator over the elements in this collection.
* @return {number}
*/
size(): number;
/**
* Returns an array containing all of the elements in this collection.
* @return {Array}
*/
toArray(): any[];
/**
* Removes a single instance of the specified element from this collection if it
* is present. (optional)
* @param {Object} e
* @return {boolean}
*/
remove(): boolean;
}