UNPKG

javascript.util

Version:

javascript.util is a port of selected parts of java.util to JavaScript

41 lines (30 loc) 917 B
goog.provide('javascript.util.List'); goog.require('javascript.util.Collection'); /** * @see http://download.oracle.com/javase/6/docs/api/java/util/List.html * * @extends {javascript.util.Collection} * @constructor * @export */ javascript.util.List = function() { }; goog.inherits(javascript.util.List, javascript.util.Collection); /** * Returns the element at the specified position in this list. * @param {number} index * @return {Object} */ javascript.util.List.prototype.get = goog.abstractMethod; /** * Replaces the element at the specified position in this list with the * specified element (optional operation). * @param {number} index * @param {Object} e * @return {Object} */ javascript.util.List.prototype.set = goog.abstractMethod; /** * Returns true if this collection contains no elements. * @return {boolean} */ javascript.util.List.prototype.isEmpty = goog.abstractMethod;