normalize longitudes for hashContains, add javadoc