added javadoc for inner class