Added java doc.

Signed-off-by: Alex Tugarev <telekom@tugarev.de>