A Display
| 33 | * A Display |
| 34 | */ |
| 35 | @Immutable |
| 36 | public abstract class AbstractDisplay implements Display { |
| 37 | |
| 38 | private final byte[] edid; |
| 39 | |
| 40 | /** |
| 41 | * Constructor for AbstractDisplay. |
| 42 | * |
| 43 | * @param edid |
| 44 | * a byte array representing a display EDID |
| 45 | */ |
| 46 | protected AbstractDisplay(byte[] edid) { |
| 47 | this.edid = Arrays.copyOf(edid, edid.length); |
| 48 | } |
| 49 | |
| 50 | @Override |
| 51 | public byte[] getEdid() { |
| 52 | return Arrays.copyOf(this.edid, this.edid.length); |
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public String toString() { |
| 57 | return EdidUtil.toString(this.edid); |
| 58 | } |
| 59 | } |
nothing calls this directly
no outgoing calls
no test coverage detected