atomic function in ListCompareAdapter and change comments to javadoc