~cpn-gui/tapaal/safePNML

« back to all changes in this revision

Viewing changes to src/dk/aau/cs/model/tapn/Colored/ColorType.java

  • Committer: Mark Glavind
  • Date: 2019-01-09 14:26:22 UTC
  • mfrom: (1011.1.18 bugFixing)
  • Revision ID: mglavi14@student.aau.dk-20190109142622-37g2dqt2z4efa7rv
merge from BugFixing

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
 
36
36
    public String toString() {
37
 
        String temp = name + " is [";
 
37
        String out = name + " is [";
38
38
        for (Color element : colors) {
39
 
            temp += element.getColorName() + ", ";
40
 
 
41
 
            temp = temp.substring(0, temp.length() - 2);
42
 
            temp += "]";
 
39
            out += element.getColorName() + ", ";
43
40
        }
44
 
        return temp;
 
41
        out = out.substring(0, out.length() - 2);
 
42
        out += "]";
 
43
        return out;
45
44
    }
46
45
 
47
46
    public Color successorTo(Color color, int offset) {