MCPcopy Index your code
hub / github.com/oshi/oshi / AbstractDisplay

Class AbstractDisplay

oshi-core/src/main/java/oshi/hardware/common/AbstractDisplay.java:35–59  ·  view source on GitHub ↗

A Display

Source from the content-addressed store, hash-verified

33 * A Display
34 */
35@Immutable
36public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected