/**
 *
 */
package com.github.apixandru.games.rummikub;

/**
 * @author Alexandru-Constantin Bledea
 * @since Sep 16, 2015
 */
public enum Rank {

	ONE(1), TWO(2), THREE(3), FOUR(4), FIVE(5), SIX(6), SEVEN(7), EIGHT(8), NINE(9), TEN(10), ELEVEN(11), TWELVE(12), THIRTEEN(13);

	private final int num;

	/**
	 * @param num
	 */
	private Rank(final int num) {
		this.num = num;
	}

}

@@ -373,10 +373,202 @@
 um;%0A%09%7D%0A%0A
+%09/**%0A%09 * @return%0A%09 */%0A%09public static Rank next(final Rank rank) %7B%0A%09%09if (null == rank %7C%7C rank.ordinal() %3E= values().length - 1) %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%09return values()%5Brank.ordinal() + 1%5D;%0A%09%7D%0A%0A
 %7D%0A

add next rank logic