AbstractMap.SimpleEntry <K, V> é usado para manter uma chave e uma entrada de valor. O valor pode ser alterado usando o método setValue. Esta classe facilita o processo de construção de implementações de mapas customizados.

O método toString() de AbstractMap.SimpleEntry <K, V> retorna uma representação String desta entrada do mapa SimpleEntry. Este método retorna a representação em string da chave desta entrada do mapa seguida pelo caractere igual (“=”) seguido pela representação em string do valor desta entrada.

Sintaxe:

public String toString()

Parâmetros: este método não aceita nada.

Valor de retorno: este método retorna uma representação String desta entrada do mapa.

Os programas abaixo ilustram o método toString():
Programa 1:

// Java program to demonstrate
// AbstractMap.SimpleEntry.toString() method
  
import java.util.*;
import java.util.AbstractMap.SimpleEntry;
  
public class GFG {
  
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static void main(String[] args)
    {
  
        // create a ArrayList of Map
        ArrayList<AbstractMap
                      .SimpleEntry<Integer, Integer> >
            arrayList
            = new ArrayList<AbstractMap
                                .SimpleEntry<Integer, Integer> >();
  
        // add values
        arrayList.add(new AbstractMap.SimpleEntry(0, 123));
        arrayList.add(new AbstractMap.SimpleEntry(1, 130));
        arrayList.add(new AbstractMap.SimpleEntry(2, 994));
  
        // print keys
        for (int i = 0; i < arrayList.size(); i++) {
  
            // get map from list
            AbstractMap.SimpleEntry<Integer, Integer>
                map
                = arrayList.get(i);
  
            // get representation of map using toString()
            String value = map.toString();
  
            System.out.println(value);
        }
    }
}
Saída:
0 = 123
1 = 130
2 = 994

Programa 2:

// Java program to demonstrate
// AbstractMap.SimpleEntry.toString() method
  
import java.util.*;
  
public class GFG {
  
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public static void main(String[] args)
    {
  
        // create a ArrayList of Map
        ArrayList<AbstractMap
                      .SimpleEntry<String, String> >
            arrayList
            = new ArrayList<AbstractMap
                                .SimpleEntry<String, String> >();
  
        // add values
        arrayList.add(new AbstractMap
                          .SimpleEntry(" 001AB ", " Emp 1"));
        arrayList.add(new AbstractMap
                          .SimpleEntry(" 011AC ", " Emp 2"));
        arrayList.add(new AbstractMap
                          .SimpleEntry(" 111AD ", " Emp 3"));
        arrayList.add(new AbstractMap
                          .SimpleEntry(" 101BE ", " Emp 4"));
        arrayList.add(new AbstractMap
                          .SimpleEntry(" 110CE ", " Emp 5"));
  
        // print keys
        for (int i = 0; i < arrayList.size(); i++) {
  
            // get map from list
            AbstractMap.SimpleEntry<String, String>
                map
                = arrayList.get(i);
  
            // get representation of map using toString()
            String value = map.toString();
  
            System.out.println(value);
        }
    }
}
Saída:
001AB = Emp 1
011AC = Emp 2
111AD = Emp 3
101BE = Emp 4
110CE = Emp 5

Referências: https://docs.oracle.com/javase/10/docs/api/java/util/AbstractMap.SimpleEntry.html#toString()