Map.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @see http://download.oracle.com/javase/6/docs/api/java/util/Map.html
  3. */
  4. export default class Map {
  5. /**
  6. * Returns the value to which the specified key is mapped, or null if this map
  7. * contains no mapping for the key.
  8. * @param {Object} key
  9. * @return {Object}
  10. */
  11. get() { }
  12. /**
  13. * Associates the specified value with the specified key in this map (optional
  14. * operation).
  15. * @param {Object} key
  16. * @param {Object} value
  17. * @return {Object}
  18. */
  19. put() { }
  20. /**
  21. * Returns the number of key-value mappings in this map.
  22. * @return {number}
  23. */
  24. size() { }
  25. /**
  26. * Returns a Collection view of the values contained in this map.
  27. * @return {javascript.util.Collection}
  28. */
  29. values() { }
  30. /**
  31. * Returns a {@link Set} view of the mappings contained in this map.
  32. * The set is backed by the map, so changes to the map are
  33. * reflected in the set, and vice-versa. If the map is modified
  34. * while an iteration over the set is in progress (except through
  35. * the iterator's own <tt>remove</tt> operation, or through the
  36. * <tt>setValue</tt> operation on a map entry returned by the
  37. * iterator) the results of the iteration are undefined. The set
  38. * supports element removal, which removes the corresponding
  39. * mapping from the map, via the <tt>Iterator.remove</tt>,
  40. * <tt>Set.remove</tt>, <tt>removeAll</tt>, <tt>retainAll</tt> and
  41. * <tt>clear</tt> operations. It does not support the
  42. * <tt>add</tt> or <tt>addAll</tt> operations.
  43. *
  44. * @return {Set} a set view of the mappings contained in this map
  45. */
  46. entrySet() { }
  47. }