| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package it.cnr.istc.pst.platinum.ai.framework.microkernel.resolver.timeline.scheduling; |
||
| 61 | @Override |
||
| 62 | public String toString() { |
||
| 63 | // JSON style object description |
||
| 64 | return "{ \"type\": \"PRECEDENCE_CONSTRAINT\", " |
||
| 65 | + "\"reference\": " + this.reference + ", " |
||
| 66 | + "\"target\": " + this.target + ", " |
||
| 67 | + "\"preserved-space-heuristic\": " + this.preserved + " }"; |
||
| 68 | } |
||
| 79 |
compareTo()andequals()must provide the same behaviour so that if, and only if,compareTo()returns 0,equals()returns true.