public void setElement(@NonNull final Geocache geocache) {
        final String geocode = geocache.getGeocode();
        for (int i = 0; i < getCount(); i++) {
            if (getItem(i).getGeocode().equalsIgnoreCase(geocode)) {
                this.list.set(i, geocache);
            }
        }
    }
view holder for the cache list adapter
main/src/main/java/cgeo/geocaching/ui/CacheListAdapter.java