add method api document in java library