java - HashSet is empty -
why hashset<circle> empty? latlng currentlocation = new latlng(mcurrentlocation.getlatitude(),mcurrentlocation.getlongitude()); googlemap googlemap = msupportmapfragment.getmap(); hashset<circle> circles = new hashset<>(); if (!circles.isempty()) { (circle circle : circles) { toast.maketext(getactivity(), "" + circles.size(), toast.length_short).show(); if (!circle.getcenter().equals(currentlocation)) { circle.remove(); circles.remove(circle); } } } log.d(tag_map, "" + circles.isempty() + " " + circles.size()); circle circle = googlemap.addcircle(new circleoptions() .radius(constant.radius) .strokecolor(color.parsecolor(constant.radius_color)) .strokewidth(constant.radius_border) .center(currentlocation)); circles.add(circle); i mean added circle object it. don