Android Open Source - Divide_And_Conquer_Card_Shuffler Card

From Project

Back to project page Divide_And_Conquer_Card_Shuffler.


The source code is released under:

MIT License

If you think the Android project Divide_And_Conquer_Card_Shuffler 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.andrewkeeton.divide.and.conquer.card.shuffler;
//w  w  w  .j a v  a2 s. c o  m
public class Card<T> implements Comparable<Card<T>> {
  public Integer mKey;
  public T mValue;
  public Card() {}
  public Card(int key, T value) {
    mKey = key;
    mValue = value;
  public int compareTo(Card<T> another) {
    return mKey.compareTo(another.mKey);
  public String toString() {
    if (mValue != null) {
      return mValue.toString();
    } else {
      return "-";

Java Source Code List