Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.text.TextUtils;

public class Main {
    public static String buildAccountTypeName(String flavor, String accountTypeName, boolean debug) {
        StringBuilder authority = new StringBuilder();
        if (!TextUtils.isEmpty(flavor)) {
            authority.append(flavor);
            authority.append('.');
        }
        authority.append(accountTypeName);
        if (debug) {
            authority.append(".debug");
        }
        return authority.toString();
    }
}