List.js 658 B

1234567891011121314151617181920212223242526
  1. import Collection from './Collection'
  2. /**
  3. * @see http://download.oracle.com/javase/6/docs/api/java/util/List.html
  4. */
  5. export default class List extends Collection {
  6. /**
  7. * Returns the element at the specified position in this list.
  8. * @param {number} index
  9. * @return {Object}
  10. */
  11. get() { }
  12. /**
  13. * Replaces the element at the specified position in this list with the
  14. * specified element (optional operation).
  15. * @param {number} index
  16. * @param {Object} e
  17. * @return {Object}
  18. */
  19. set() { }
  20. /**
  21. * Returns true if this collection contains no elements.
  22. * @return {boolean}
  23. */
  24. isEmpty() { }
  25. }