View Javadoc
1   /*
2    * Copyright 2021-2022 The OSHI Project Contributors
3    * SPDX-License-Identifier: MIT
4    */
5   package oshi.hardware.platform.unix;
6   
7   import oshi.annotation.concurrent.Immutable;
8   import oshi.hardware.common.AbstractBaseboard;
9   
10  /**
11   * Baseboard data obtained by a calling class
12   */
13  @Immutable
14  public final class UnixBaseboard extends AbstractBaseboard {
15  
16      private final String manufacturer;
17      private final String model;
18      private final String serialNumber;
19      private final String version;
20  
21      public UnixBaseboard(String manufacturer, String model, String serialNumber, String version) {
22          this.manufacturer = manufacturer;
23          this.model = model;
24          this.serialNumber = serialNumber;
25          this.version = version;
26      }
27  
28      @Override
29      public String getManufacturer() {
30          return this.manufacturer;
31      }
32  
33      @Override
34      public String getModel() {
35          return this.model;
36      }
37  
38      @Override
39      public String getSerialNumber() {
40          return this.serialNumber;
41      }
42  
43      @Override
44      public String getVersion() {
45          return this.version;
46      }
47  }