Commits

Ville Saalo committed 89cbe01

Forgot the SortOrder class....

Comments (0)

Files changed (1)

src/com/saibotd/bitbeaker/SortOrder.java

+package com.saibotd.bitbeaker;
+
+import com.saibotd.bitbeaker.Helper.Sort;
+
+/**
+ * This class represents a sorting order given to a table (or an array
+ * of objects). The "key" is the column and the "direction" is either 
+ * ascending or descending.
+ */
+public class SortOrder {
+	public final String key;
+	public final Sort direction;
+	
+	public SortOrder(String key) {
+		this(key, Sort.ASCENDING_CASE_SENSITIVE);
+	}
+	
+	public SortOrder(String key, Sort dir) {
+		this.key = key;
+		this.direction = dir;
+	}
+}