Android Open Source - runescape-highscore Triple






From Project

Back to project page runescape-highscore.

License

The source code is released under:

Apache License

If you think the Android project runescape-highscore listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.rsstat.models;
//from  w  w  w .j  a  va  2s.c o  m
import android.os.Parcel;
import android.os.Parcelable;

public class Triple implements Parcelable {

    private final String rank;
    private final String level;
    private final String xp;

    public Triple(String rank, String level, String xp){
        this.rank = rank;
        this.level = level;
        this.xp = xp;
    }

    public String getLevel() {
        return level;
    }

    public String getXp() {
        return xp;
    }

    public String getRank() {

        return rank;
    }

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

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.rank);
        dest.writeString(this.level);
        dest.writeString(this.xp);
    }

    private Triple(Parcel in) {
        this.rank = in.readString();
        this.level = in.readString();
        this.xp = in.readString();
    }

    public static final Parcelable.Creator<Triple> CREATOR = new Parcelable.Creator<Triple>() {
        public Triple createFromParcel(Parcel source) {
            return new Triple(source);
        }

        public Triple[] newArray(int size) {
            return new Triple[size];
        }
    };
}




Java Source Code List

com.rsstat.ApplicationTest.java
com.rsstat.Constants.java
com.rsstat.models.Triple.java
com.rsstat.rest.api.RSHighScoreAPI.java
com.rsstat.ui.MainActivity.java
com.rsstat.ui.ResultsActivity.java
com.rsstat.ui.adapters.ResultsListAdapter.java
com.rsstat.ui.adapters.SearchHistoryListAdapter.java