@MinDoc(copyright="Copyright 1997 - 2009, 2021 A. Weinert", author="Albrecht Weinert", version="V.57", lastModified="4.07.2021", purpose="Common final values, platform info, constants and so on.") public interface ComVar
ComVar.Impl
.Modifier and Type | Interface and Description |
---|---|
static class |
ComVar.Impl
Internal implementation class (for ComVar).
|
Modifier and Type | Field and Description |
---|---|
static String |
AUTHOR
The author and project owner of the framework.
|
static String |
BLANK_STRING
40 blanks.
|
static Console |
cons
The real console, if any.
|
static String |
CONSOL_ENCODING
Encoding for console input and output.
|
static String |
COPYRIGHT
Copyright for the framework.
|
static int |
D
Milliseconds per day.
|
static double |
D_NaN
Invalid value (NaN) for double.
|
static double |
D_NegInf
Minus infinity for double.
|
static double |
D_PosInf
Plus infinity for double.
|
static int[] |
EMPTY_INT_A
An empty int array.
|
static String |
EMPTY_STRING
An empty String.
|
static String |
FILE_ENCODING
Encoding for (file) input and output.
|
static ClassLoader |
FRW_CLLD
The class loader.
|
static char |
FS
The property "file.separator".
|
static String |
FSS
The property "file.separator".
|
static int |
H
Milliseconds per hour.
|
static boolean |
hasCons
The real console, if any, is provided.
|
static String |
HOST_IP
The host IP.
|
static boolean |
HOST_IPv4
The host IP is V4.
|
static String |
HOST_NAME
The host name.
|
static int |
INIT_ERROR
Error while evaluating start parameters and setting properties.
|
static String |
JAR_ENCODING
Encoding for (file) resources in Java archives.
|
static String |
JH
The system property "java.home".
|
static int |
JOB_DONE_OK
Requested job is done.
|
static String |
JRL
The "jre\lib" directory.
|
static int |
LOG_OUT_ERROR
Exception or error while initialising log and out.
|
static int |
M
Milliseconds per minute.
|
static int |
MAIN_THREAD_EXC
Not handled exception in the main thread.
|
static byte[] |
NO_BYTES
An empty array of (0) bytes.
|
static Class<?>[] |
NO_CLASSES
An empty array of (0) Classes.
|
static double[] |
NO_DOUBLES
An empty array of (0) doubles.
|
static Object[] |
NO_OBJECTS
An empty array of (0) Objects.
|
static int |
NO_PARS_ERROR
No start parameters.
|
static String[] |
NO_STRINGS
An empty array of (0) Strings.
|
static boolean |
NOT_WINDOWS
Operating system is not Windows.
|
static boolean |
ON_PI
Running on a Raspberry Pi.
|
static long |
ONE_DAY
Milliseconds per day.
|
static long |
ONE_HOUR
Milliseconds per hour.
|
static long |
ONE_LEAP_YEAR
Milliseconds per leap year (366 days).
|
static long |
ONE_MINUTE
Milliseconds per minute.
|
static long |
ONE_SECOND
Milliseconds per second.
|
static long |
ONE_WEEK
Milliseconds per week (long).
|
static long |
ONE_YEAR
Milliseconds per year (365 days).
|
static String |
OS
Operating system's name.
|
static String |
PROG_NAME
The command / program name.
|
static String |
PROG_SHORT
The short command / program name.
|
static char |
PS
The system property "path.separator".
|
static Runtime |
RUNTIME
The one (and only) Runtime-Object of the JVM.
|
static int |
S
Milliseconds per second.
|
static String |
SHY
Soft hyphen ­entity .
|
static String |
UD
The system property "user.dir".
|
static String |
UL
The system property "user.language".
|
static boolean |
UL_UR_da
The properties user.language and .region were readable.
|
static String |
UR
The system property "user.region".
|
static final String AUTHOR
"Albrecht Weinert"
static final String COPYRIGHT
"Copyright (c) 2021 Albrecht Weinert"
static final String[] NO_STRINGS
static final byte[] NO_BYTES
static final Object[] NO_OBJECTS
static final Class<?>[] NO_CLASSES
static final double[] NO_DOUBLES
static final double D_NegInf
static final double D_PosInf
static final double D_NaN
static final String EMPTY_STRING
ComVar
's common (final) reference values
allows for == in places, where equals() would else be necessary. This is
used throughout the framework and should not be broken. String.intern()
; but there's no guarantee.static final String SHY
static final String BLANK_STRING
static final int[] EMPTY_INT_A
EMPTY_STRING
static final int S
ONE_SECOND
,
Constant Field Valuesstatic final int M
ONE_MINUTE
,
Constant Field Valuesstatic final int H
3600000
ONE_HOUR
,
Constant Field Valuesstatic final int D
86400000
ONE_DAY
,
Constant Field Valuesstatic final long ONE_SECOND
S
,
Constant Field Valuesstatic final long ONE_MINUTE
60000L
(...L means long)static final long ONE_HOUR
3600000L
(...L means long)static final long ONE_DAY
86400000L
(...L means long)static final long ONE_WEEK
604800000L
(...L means long)static final long ONE_YEAR
31536000000L
(...L means long)static final long ONE_LEAP_YEAR
31622400000L
(...L means long)static final int NO_PARS_ERROR
String[]
(usually as command line parameters) was called without it.
static final int INIT_ERROR
AppBase
.AppBase.exit(Exception, int)
.static final int MAIN_THREAD_EXC
static final int LOG_OUT_ERROR
PrintWriter
s log and/or
out failed. This may happen if command line parameters order an
unusable log file, e.g.static final int JOB_DONE_OK
static final Runtime RUNTIME
static final String OS
static final boolean NOT_WINDOWS
static final boolean ON_PI
static final String HOST_NAME
static final String HOST_IP
static final boolean HOST_IPv4
HOST_IP
could be determined and is of Type IPv4.static final String PROG_NAME
static final String PROG_SHORT
static final String FILE_ENCODING
NOT_WINDOWS
or "ISO-8859-1" else.static final String JAR_ENCODING
Prop
's and AppLangMap
's
relevant load
methods as default.static final String CONSOL_ENCODING
CONSOL_ENCODING
gets the value
"Cp850"; otherwise FILE_ENCODING
.CONSOL_ENCODING
. This
holds for all operating systems.FILE_ENCODING
.chcp this
would go undetected here.
static final Console cons
static final boolean hasCons
cons
is not null. In that case the underlying
system provided a shell or terminal as
java.io.Console
.static final char FS
static final String FSS
static final char PS
static final String UR
static final String UL
static final String UD
static final String JH
static final String JRL
Prop.load()
)
may search for .properties files.static final boolean UL_UR_da
static final ClassLoader FRW_CLLD