View Javadoc
1   /*
2    * Copyright 2016-2022 The OSHI Project Contributors
3    * SPDX-License-Identifier: MIT
4    */
5   package oshi.hardware.common;
6   
7   import oshi.annotation.concurrent.Immutable;
8   import oshi.hardware.Baseboard;
9   
10  /**
11   * Baseboard data
12   */
13  @Immutable
14  public abstract class AbstractBaseboard implements Baseboard {
15  
16      @Override
17      public String toString() {
18          StringBuilder sb = new StringBuilder();
19          sb.append("manufacturer=").append(getManufacturer()).append(", ");
20          sb.append("model=").append(getModel()).append(", ");
21          sb.append("version=").append(getVersion()).append(", ");
22          sb.append("serial number=").append(getSerialNumber());
23          return sb.toString();
24      }
25  
26  }