overloadHelper.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * A bowl of non-spicy soup.
  3. * @class
  4. *//**
  5. * A bowl of spicy soup.
  6. * @class
  7. * @param {number} spiciness - The spiciness of the soup, in Scoville heat units (SHU).
  8. */
  9. function Soup(spiciness) {}
  10. /**
  11. * Slurp the soup.
  12. *//**
  13. * Slurp the soup loudly.
  14. * @param {number} dBA - The slurping volume, in A-weighted decibels.
  15. */
  16. Soup.prototype.slurp = function(dBA) {};
  17. /**
  18. * Salt the soup as needed, using a highly optimized soup-salting heuristic.
  19. *//**
  20. * Salt the soup, specifying the amount of salt to add.
  21. * @variation mg
  22. * @param {number} amount - The amount of salt to add, in milligrams.
  23. */
  24. Soup.prototype.salt = function(amount) {};
  25. /**
  26. * Heat the soup by the specified number of degrees.
  27. * @param {number} degrees - The number of degrees, in Fahrenheit, by which to heat the soup.
  28. *//**
  29. * Heat the soup by the specified number of degrees.
  30. * @variation 1
  31. * @param {string} degrees - The number of degrees, in Fahrenheit, by which to heat the soup, but
  32. * as a string for some reason.
  33. *//**
  34. * Heat the soup by the specified number of degrees.
  35. * @param {boolean} degrees - The number of degrees, as a boolean. Wait, what?
  36. */
  37. Soup.prototype.heat = function(degrees) {};
  38. /**
  39. * Discard the soup.
  40. * @variation discardSoup
  41. *//**
  42. * Discard the soup by pouring it into the specified container.
  43. * @variation discardSoup
  44. * @param {Object} container - The container in which to discard the soup.
  45. */
  46. Soup.prototype.discard = function(container) {};