| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
package com.atlassian.core.util.thumbnail; |
| 7 |
|
|
| 8 |
|
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 6 |
Complexity Density: 0.67 |
|
| 9 |
|
public class Thumbnail |
| 10 |
|
{ |
| 11 |
|
private int height; |
| 12 |
|
private int width; |
| 13 |
|
|
| 14 |
|
private String filename; |
| 15 |
|
private long attachmentId; |
| 16 |
|
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
| 17 |
0
|
public Thumbnail(int height, int width, String fileName, long attachmentId)... |
| 18 |
|
{ |
| 19 |
0
|
this.height = height; |
| 20 |
0
|
this.width = width; |
| 21 |
0
|
this.filename = fileName; |
| 22 |
0
|
this.attachmentId = attachmentId; |
| 23 |
|
} |
| 24 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 25 |
0
|
public int getHeight()... |
| 26 |
|
{ |
| 27 |
0
|
return height; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 31 |
0
|
public int getWidth()... |
| 32 |
|
{ |
| 33 |
0
|
return width; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 39 |
0
|
public String getFilename()... |
| 40 |
|
{ |
| 41 |
0
|
return filename; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
|
| 46 |
|
@return |
| 47 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 48 |
0
|
public long getAttachmentId()... |
| 49 |
|
{ |
| 50 |
0
|
return attachmentId; |
| 51 |
|
} |
| 52 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0
|
public String toString()... |
| 54 |
|
{ |
| 55 |
0
|
return "Thumbnail " + filename + " width:" + width + " height:" + height; |
| 56 |
|
} |
| 57 |
|
} |