| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
package com.atlassian.core.util; |
| 6 |
|
|
| 7 |
|
import java.io.Serializable; |
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
|
|
|
| 0% |
Uncovered Elements: 38 (38) |
Complexity: 13 |
Complexity Density: 0.62 |
|
| 13 |
|
public class PairType implements Serializable |
| 14 |
|
{ |
| 15 |
|
|
| 16 |
|
|
| 17 |
|
private Serializable key; |
| 18 |
|
private Serializable value; |
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 22 |
0
|
public PairType()... |
| 23 |
|
{ |
| 24 |
|
} |
| 25 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 26 |
0
|
public PairType(Serializable key, Serializable value)... |
| 27 |
|
{ |
| 28 |
0
|
this.key = key; |
| 29 |
0
|
this.value = value; |
| 30 |
|
} |
| 31 |
|
|
| 32 |
|
|
| 33 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 34 |
0
|
public Serializable getKey()... |
| 35 |
|
{ |
| 36 |
0
|
return key; |
| 37 |
|
} |
| 38 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
0
|
public void setKey(Serializable key)... |
| 40 |
|
{ |
| 41 |
0
|
this.key = key; |
| 42 |
|
} |
| 43 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 44 |
0
|
public Serializable getValue()... |
| 45 |
|
{ |
| 46 |
0
|
return value; |
| 47 |
|
} |
| 48 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 49 |
0
|
public void setValue(Serializable value)... |
| 50 |
|
{ |
| 51 |
0
|
this.value = value; |
| 52 |
|
} |
| 53 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 54 |
0
|
public String toString()... |
| 55 |
|
{ |
| 56 |
0
|
return key+"/"+value; |
| 57 |
|
} |
| 58 |
|
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 5 |
Complexity Density: 0.5 |
|
| 59 |
0
|
public boolean equals(Object o)... |
| 60 |
|
{ |
| 61 |
0
|
if (this == o) return true; |
| 62 |
0
|
if (!(o instanceof PairType)) return false; |
| 63 |
|
|
| 64 |
0
|
final PairType pairType = (PairType) o; |
| 65 |
|
|
| 66 |
0
|
if (!key.equals(pairType.key)) return false; |
| 67 |
0
|
if (!value.equals(pairType.value)) return false; |
| 68 |
|
|
| 69 |
0
|
return true; |
| 70 |
|
} |
| 71 |
|
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 72 |
0
|
public int hashCode()... |
| 73 |
|
{ |
| 74 |
0
|
int result; |
| 75 |
0
|
result = key.hashCode(); |
| 76 |
0
|
result = 29 * result + value.hashCode(); |
| 77 |
0
|
return result; |
| 78 |
|
} |
| 79 |
|
} |