// Path: src/it/reyboz/bustorino/util/LinesNameSorter.java
// public class LinesNameSorter implements Comparator<String> {
//     @Override
//     public int compare(String name1, String name2) {
// 
//         if(name1.length()>name2.length()) return 1;
//         if(name1.length()==name2.length()) {
//             try{
//                 int num1 = Integer.parseInt(name1.trim());
//                 int num2 = Integer.parseInt(name2.trim());
//                 return num1-num2;
//             } catch (NumberFormatException  ex){
//                 //Log.d("BUSTO Compare lines","Cannot compare lines "+name1+" and "+name2);
//                 return name1.compareTo(name2);
//             }
//         }
//         return -1;
// 
//     }
// }


import android.location.Location;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import it.reyboz.bustorino.util.LinesNameSorter;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.List;
import java.util.Locale;

    @Nullable
    public String getAbsurdGTTPlaceName() {
        return absurdGTTPlaceName;
    }

    public void setAbsurdGTTPlaceName(@NonNull String absurdGTTPlaceName) {
        this.absurdGTTPlaceName = absurdGTTPlaceName;
    }

    public void setRoutesThatStopHere(@Nullable List<String> routesThatStopHere) {
        this.routesThatStopHere = routesThatStopHere;
    }

    protected void setRoutesThatStopHereString(String routesStopping){
        this.routesThatStopHereString = routesStopping;
    }

    @Nullable
    protected List<String> getRoutesThatStopHere(){
        return routesThatStopHere;
    }

    protected @Nullable String buildRoutesString() {
        // no routes => no string
        if(this.routesThatStopHere == null || this.routesThatStopHere.size() == 0) {
            return null;
        }

        StringBuilder sb = new StringBuilder();
// Path: src/it/reyboz/bustorino/util/LinesNameSorter.java
// public class LinesNameSorter implements Comparator<String> {
//     @Override
//     public int compare(String name1, String name2) {
// 
//         if(name1.length()>name2.length()) return 1;
//         if(name1.length()==name2.length()) {
//             try{
//                 int num1 = Integer.parseInt(name1.trim());
//                 int num2 = Integer.parseInt(name2.trim());
//                 return num1-num2;
//             } catch (NumberFormatException  ex){
//                 //Log.d("BUSTO Compare lines","Cannot compare lines "+name1+" and "+name2);
//                 return name1.compareTo(name2);
//             }
//         }
//         return -1;
// 
//     }
// }


// Path: src/it/reyboz/bustorino/backend/Stop.java
import android.location.Location;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import it.reyboz.bustorino.util.LinesNameSorter;
import java.net.URLEncoder;
import java.util.Collections;
import java.util.List;
import java.util.Locale;


    @Nullable
    public String getAbsurdGTTPlaceName() {
        return absurdGTTPlaceName;
    }

    public void setAbsurdGTTPlaceName(@NonNull String absurdGTTPlaceName) {
        this.absurdGTTPlaceName = absurdGTTPlaceName;
    }

    public void setRoutesThatStopHere(@Nullable List<String> routesThatStopHere) {
        this.routesThatStopHere = routesThatStopHere;
    }

    protected void setRoutesThatStopHereString(String routesStopping){
        this.routesThatStopHereString = routesStopping;
    }

    @Nullable
    protected List<String> getRoutesThatStopHere(){
        return routesThatStopHere;
    }

    protected @Nullable String buildRoutesString() {
        // no routes => no string
        if(this.routesThatStopHere == null || this.routesThatStopHere.size() == 0) {
            return null;
        }

        StringBuilder sb = new StringBuilder();
        Collections.sort(routesThatStopHere,new LinesNameSorter());