1
2
3
4
5 package oshi.hardware.platform.unix;
6
7 import java.util.List;
8 import java.util.stream.Collectors;
9
10 import oshi.annotation.concurrent.ThreadSafe;
11 import oshi.driver.unix.Xrandr;
12 import oshi.hardware.Display;
13 import oshi.hardware.common.AbstractDisplay;
14
15
16
17
18 @ThreadSafe
19 public final class UnixDisplay extends AbstractDisplay {
20
21
22
23
24
25
26 UnixDisplay(byte[] edid) {
27 super(edid);
28 }
29
30
31
32
33
34
35 public static List<Display> getDisplays() {
36 return Xrandr.getEdidArrays().stream().map(UnixDisplay::new).collect(Collectors.toList());
37 }
38 }