<NME> CoordinatesFormatSwitcher.java
<BEF> package cgeo.geocaching.ui;

import cgeo.geocaching.location.Geopoint;
import cgeo.geocaching.location.GeopointFormatter;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

/**
 * view click listener to automatically switch different coordinate formats
 */
public class CoordinatesFormatSwitcher {

    private static final GeopointFormatter.Format[] availableFormats = {
            GeopointFormatter.Format.LAT_LON_DECMINUTE,
            GeopointFormatter.Format.LAT_LON_DECSECOND,
            GeopointFormatter.Format.LAT_LON_DECDEGREE,
            GeopointFormatter.Format.UTM
    };

    private int position = 0;
    private Geopoint coordinates;
    private TextView view;


    public CoordinatesFormatSwitcher setView(final TextView view) {
        this.view = view;
        this.view.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(final View v) {
                position = (position + 1) % availableFormats.length;
                renderView();
            }
        });
        renderView();
        return this;

    public CoordinatesFormatSwitcher setCoordinate(final Geopoint coordinate) {
        this.coordinates = coordinate;
        renderView();
        return this;
    }

    private void renderView() {
        if (this.view != null && this.coordinates != null) {
            this.view.setText(coordinates.format(availableFormats[position]));
        }
    }

}

<MSG> Anonymous type can be replaced with lambda

<DFF> @@ -3,8 +3,6 @@ package cgeo.geocaching.ui;
 import cgeo.geocaching.location.Geopoint;
 import cgeo.geocaching.location.GeopointFormatter;
 
-import android.view.View;
-import android.view.View.OnClickListener;
 import android.widget.TextView;
 
 /**
@@ -26,12 +24,9 @@ public class CoordinatesFormatSwitcher {
 
     public CoordinatesFormatSwitcher setView(final TextView view) {
         this.view = view;
-        this.view.setOnClickListener(new OnClickListener() {
-            @Override
-            public void onClick(final View v) {
-                position = (position + 1) % availableFormats.length;
-                renderView();
-            }
+        this.view.setOnClickListener(v -> {
+            position = (position + 1) % availableFormats.length;
+            renderView();
         });
         renderView();
         return this;

Anonymous type can be replaced with lambda