Optional used as method argument? (original) (raw)
Wang Weijun weijun.wang at oracle.com
Fri Oct 2 13:27:19 UTC 2015
- Previous message: Optional used as method argument?
- Next message: Optional used as method argument?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
在 2015年10月2日,下午8:49,Roger Riggs <Roger.Riggs at oracle.com> 写道:
+1 The "no such value" makes me curious about the context. The @param tag really should be saying something about the parameter.
In fact, I'm working on a method which is similar to
/*
- Generates some random bytes.
- @param n requested random value in bytes.
- @param extraEntropy optional entropy caller can provide, null if none. */ byte[] getRandom(int n, byte[] extraEntropy)
Most caller won't be able to provide extra entropy, but if one does have a dedicated device which can generate fresh entropy, it is welcome.
Thanks Max
- Previous message: Optional used as method argument?
- Next message: Optional used as method argument?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]