| Total Complexity | 7 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package io.mcarle.sciurus; |
||
| 5 | public class ExecutionIdentifier { |
||
| 6 | |||
| 7 | private final String signature; |
||
| 8 | private final Object[] args; |
||
| 9 | |||
| 10 | 1 | public ExecutionIdentifier(String signature, Object[] args) { |
|
| 11 | 1 | this.signature = signature; |
|
| 12 | 1 | this.args = args; |
|
| 13 | 1 | } |
|
| 14 | |||
| 15 | @Override |
||
| 16 | public boolean equals(Object o) { |
||
| 17 | 1 | if (this == o) return true; |
|
| 18 | 1 | if (o == null || getClass() != o.getClass()) return false; |
|
| 19 | |||
| 20 | 1 | ExecutionIdentifier source = (ExecutionIdentifier) o; |
|
| 21 | |||
| 22 | 1 | return signature.equals(source.signature) && Arrays.deepEquals(args, source.args); |
|
| 23 | } |
||
| 24 | |||
| 25 | @Override |
||
| 26 | public int hashCode() { |
||
| 27 | 1 | return 29 * signature.hashCode() + Arrays.deepHashCode(args); |
|
| 28 | } |
||
| 29 | |||
| 30 | @Override |
||
| 31 | public String toString() { |
||
| 32 | 1 | return signature; |
|
| 33 | } |
||
| 34 | } |