T
- Type of generated valuepublic interface Supplier<T>
Supplier
. It is used in Logger
and
TaggedLogger
for lazy generation of messages and arguments. A message or argument can be provided as lambda
expression and will be only generated, if the log entry is really output.
tinylog provides its own supplier to ensure compatibility with Java prior to version 8.
Supplier
was introduced with Java 8.
Modifier and Type | Method and Description |
---|---|
T |
get()
Generates the value.
|
T get()
Copyright © 2024. All rights reserved.