Skip to content

Commit

Permalink
0001739: Make transform edit screen table sortable by group link
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed May 30, 2014
1 parent 257ffdc commit 7d58330
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -24,7 +24,7 @@
import java.io.Serializable;
import java.util.Date;

public class NodeGroupLink implements Serializable {
public class NodeGroupLink implements Serializable, Comparable<NodeGroupLink> {

private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -114,6 +114,11 @@ public Date getLastUpdateTime() {
@Override
public String toString() {
return sourceNodeGroupId + " " + dataEventAction + " " + targetNodeGroupId;
}

@Override
public int compareTo(NodeGroupLink o) {
return toString().compareTo(o.toString());
}

@Override
Expand Down

0 comments on commit 7d58330

Please sign in to comment.