Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.support.v4.util.ArrayMap;
import android.text.TextUtils;

import java.util.Map;

public class Main {

    public static Map<String, String> getOption(int skip, int limit, String sort) {
        Map<String, String> options = new ArrayMap<>();
        options.put("skip", skip + "");
        options.put("limit", limit + "");
        if (!TextUtils.isEmpty(sort))
            options.put("sort", sort);
        return options;
    }
}