| 61 | double getSecondMoment(); // here for aggregation etc but not (yet?) a human metric so not in MetricData |
| 62 | |
| 63 | public static class Key implements Serializable { |
| 64 | private final String name; |
| 65 | private final Role role; |
| 66 | private int hash = Integer.MIN_VALUE; |
| 67 | |
| 68 | public Key(final Role role, final String name) { |
| 69 | this.role = role; |
| 70 | this.name = name; |
| 71 | } |
| 72 | |
| 73 | @Override |
| 74 | public String toString() { |
| 75 | return "name=" + name; |
| 76 | } |
| 77 | |
| 78 | @Override |
| 79 | public boolean equals(Object o) { |
| 80 | if (this == o) return true; |
| 81 | if (o == null || getClass() != o.getClass()) return false; |
| 82 | |
| 83 | final Key key = (Key) o; |
| 84 | return name.equals(key.name) && role.equals(key.role); |
| 85 | |
| 86 | } |
| 87 | |
| 88 | @Override |
| 89 | public int hashCode() { |
| 90 | if (hash == Integer.MIN_VALUE) { |
| 91 | hash = name.hashCode(); |
| 92 | hash = 31 * hash + role.hashCode(); |
| 93 | } |
| 94 | return hash; |
| 95 | } |
| 96 | |
| 97 | public String getName() { |
| 98 | return name; |
| 99 | } |
| 100 | |
| 101 | public Role getRole() { |
| 102 | return role; |
| 103 | } |
| 104 | } |
| 105 | } |
nothing calls this directly
no outgoing calls
no test coverage detected