title: Java: automatic memoization
body: <p>I have a few functions in my code where it makes much sense (seems even mandatory) to use memoization.</p>
  
  <p>I don't want to implement that manually for every function separately. Is there some way (for example <a href="http://wiki.python.org/moin/PythonDecoratorLibrary#Memoize" rel="noreferrer">like in Python</a>) I can just use an annotation or do something else so I get this automatically on those functions where I want it?</p>