Collection.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * @see http://download.oracle.com/javase/6/docs/api/java/util/Collection.html
  3. */
  4. export default class Collection {
  5. /**
  6. * Ensures that this collection contains the specified element (optional
  7. * operation).
  8. * @param {Object} e
  9. * @return {boolean}
  10. */
  11. add() { }
  12. /**
  13. * Appends all of the elements in the specified collection to the end of this
  14. * list, in the order that they are returned by the specified collection's
  15. * iterator (optional operation).
  16. * @param {javascript.util.Collection} c
  17. * @return {boolean}
  18. */
  19. addAll() { }
  20. /**
  21. * Returns true if this collection contains no elements.
  22. * @return {boolean}
  23. */
  24. isEmpty() { }
  25. /**
  26. * Returns an iterator over the elements in this collection.
  27. * @return {javascript.util.Iterator}
  28. */
  29. iterator() { }
  30. /**
  31. * Returns an iterator over the elements in this collection.
  32. * @return {number}
  33. */
  34. size() { }
  35. /**
  36. * Returns an array containing all of the elements in this collection.
  37. * @return {Array}
  38. */
  39. toArray() { }
  40. /**
  41. * Removes a single instance of the specified element from this collection if it
  42. * is present. (optional)
  43. * @param {Object} e
  44. * @return {boolean}
  45. */
  46. remove() { }
  47. }