package com.collective.celos;

/**
 * Uniquely identifies a workflow.
 */
public class WorkflowID extends ValueObject {

    protected final String id;
    
    public WorkflowID(String id) {
        this.id = Util.requireNonNull(id);
        if (id.trim().equals("")) {
            throw new IllegalArgumentException("Workflow ID can't be only whitespace.");
        }
        if (id.contains("/")) {
            throw new IllegalArgumentException("Workflow ID can't contain slash.");
        }
    }

    public String toString() {
        return id;
    }
    
}

@@ -110,16 +110,50 @@
 ueObject
+ implements Comparable%3CWorkflowID%3E
  %7B%0A%0A    
@@ -581,20 +581,122 @@
 rn id;%0A    %7D
+%0A%0A    @Override%0A    public int compareTo(WorkflowID o) %7B%0A        return this.id.compareTo(o.id);%0A    %7D
 %0A    %0A%7D%0A

Make WorkflowID comparable