1
2
3
4
5 package oshi.util;
6
7 import java.time.Instant;
8 import java.time.OffsetDateTime;
9 import java.time.ZoneOffset;
10 import java.util.regex.Pattern;
11
12 import oshi.annotation.concurrent.ThreadSafe;
13
14
15
16
17 @ThreadSafe
18 public final class Constants {
19
20
21
22
23 public static final String UNKNOWN = "unknown";
24
25
26
27
28 public static final OffsetDateTime UNIX_EPOCH = OffsetDateTime.ofInstant(Instant.EPOCH, ZoneOffset.UTC);
29
30 public static final Pattern DIGITS = Pattern.compile("\\d+");
31
32
33
34
35 private Constants() {
36 throw new AssertionError();
37 }
38 }