package jwf.debugport;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Configuration parameters for the {@link DebugPortService}
 */
public class Params implements Parcelable {
    public Params() {
    }

    /**
     * Set the port on which the {@link jwf.debugport.internal.TelnetServer} should be made available.
     */
    public Params setPort(int port) {
        return this;
    }

    /**
     * Get the port on which the {@link jwf.debugport.internal.TelnetServer} will be made available.
     */
    public int getPort() {
        return 0;
    }

    /**
     * Set an array of commands which should be executed on the interpreter before the telnet client
     * is given control.  This can be useful if you need to run a bunch of <code>import</code>
     * statements, or configure some state.
     */
    public Params setStartupCommands(String[] commands) {
        return this;
    }

    /**
     * Get the startup commands which will be executed on the interpreter before each telnet client
     * is given control.
     */
    public String[] getStartupCommands() {
        return new String[0];
    }

    @Override
    public int describeContents() {
        return hashCode();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
    }

    public static final Creator<Params> CREATOR = new Creator<Params>() {
        @Override
        public Params createFromParcel(Parcel source) {
            Params p = new Params();
            return p;
        }

        @Override
        public Params[] newArray(int size) {
            return new Params[size];
        }
    };
}

@@ -187,16 +187,130 @@
 lable %7B%0A
+    public static final int DEFAULT_ANDROID_PORT = 8562;%0A    public static final int DEFAULT_SQLITE_PORT = 8563;%0A%0A
     publ
@@ -439,33 +439,108 @@
 vailable.%0A     *
-/
+ @deprecated Use %7B@link #setDebugPort(int)%7D instead.%0A     */%0A    @Deprecated
 %0A    public Para
@@ -709,28 +709,730 @@
    *
-/%0A    public int get
+ @deprecated Use %7B@link #getDebugPort()%7D instead.%0A     */%0A    @Deprecated%0A    public int getPort() %7B%0A        return 0;%0A    %7D%0A%0A    /**%0A     * Set the port on which the debug port server will be made available.%0A     */%0A    public Params setDebugPort(int port) %7B%0A        return this;%0A    %7D%0A%0A    /**%0A     * Get the port on which the debug port server will be made available.%0A     */%0A    public int getDebugPort() %7B%0A        return 0;%0A    %7D%0A%0A    /**%0A     * Set the port on which the SQLite-context server will be made available.%0A     */%0A    public Params setSQLitePort(int port) %7B%0A        return this;%0A    %7D%0A%0A    /**%0A     * Get the port on which the SQLite-context server will be made available.%0A     */%0A    public int getSQLite
 Port

Add support for new params methods.