| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| pack-priv static record | |
| pack-priv static record | |
| pack-priv static record |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private final Consumer | |
| private final Clock | timestampClock
Record Component accessed by timestampClock(). |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Consumer | |
| pack-priv ConsoleLogger | |
| pack-priv ConsoleLogger | |
| pack-priv ConsoleLogger | |
| pack-priv ConsoleLogger | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Consumer | |
| public final int | |
| public Consumer | |
| public Clock | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| err | back to summary |
|---|---|
| private final Consumer<String> err Record Component accessed by err(). | |
| out | back to summary |
|---|---|
| private final Consumer<String> out Record Component accessed by out(). | |
| timestampClock | back to summary |
|---|---|
| private final Clock timestampClock Record Component accessed by timestampClock(). | |
| ConsoleLogger | back to summary |
|---|---|
| public ConsoleLogger(Consumer<String> out, Consumer<String> err, Clock timestampClock) | |
| ConsoleLogger | back to summary |
|---|---|
| public ConsoleLogger(Consumer<String> out, Consumer<String> err) | |
| addTimestamps | back to summary |
|---|---|
| private static Consumer | |
| addTimestampsToErr | back to summary |
|---|---|
| pack-priv ConsoleLogger addTimestampsToErr() | |
| addTimestampsToOut | back to summary |
|---|---|
| pack-priv ConsoleLogger addTimestampsToOut() | |
| discardErr | back to summary |
|---|---|
| pack-priv ConsoleLogger discardErr() | |
| discardOut | back to summary |
|---|---|
| pack-priv ConsoleLogger discardOut() | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| err | back to summary |
|---|---|
| public Consumer Record Component getter of err. | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| out | back to summary |
|---|---|
| public Consumer Record Component getter of out. | |
| timestampClock | back to summary |
|---|---|
| public Clock timestampClock() Record Component getter of timestampClock. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Clock | |
| private final Consumer | |
| private static final DateTimeFormatter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(String str)
Implements java. Performs this operation on the given argument. |
| public Clock | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public Consumer | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| clock | back to summary |
|---|---|
| private final Clock clock Record Component accessed by clock(). | |
| sink | back to summary |
|---|---|
| private final Consumer<String> sink Record Component accessed by sink(). | |
| TIMESTAMP_FORMATTER | back to summary |
|---|---|
| private static final DateTimeFormatter TIMESTAMP_FORMATTER | |
| AddingTimestampsConsumer | back to summary |
|---|---|
| pack-priv AddingTimestampsConsumer(Consumer<String> sink, Clock clock) | |
| accept | back to summary |
|---|---|
| public void accept(String str) Implements java. Doc from java. Performs this operation on the given argument.
| |
| clock | back to summary |
|---|---|
| public Clock clock() Record Component getter of clock. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| sink | back to summary |
|---|---|
| public Consumer Record Component getter of sink. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final PrintWriter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public PrintWriter | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| sink | back to summary |
|---|---|
| private final PrintWriter sink Record Component accessed by sink(). | |
| ConsoleLoggerErrSink | back to summary |
|---|---|
| pack-priv ConsoleLoggerErrSink(PrintWriter sink) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| sink | back to summary |
|---|---|
| public PrintWriter sink() Record Component getter of sink. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final PrintWriter |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public PrintWriter | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| sink | back to summary |
|---|---|
| private final PrintWriter sink Record Component accessed by sink(). | |
| ConsoleLoggerOutSink | back to summary |
|---|---|
| pack-priv ConsoleLoggerOutSink(PrintWriter sink) | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| sink | back to summary |
|---|---|
| public PrintWriter sink() Record Component getter of sink. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Clock |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Clock | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| clock | back to summary |
|---|---|
| private final Clock clock Record Component accessed by clock(). | |
| ConsoleLoggerTimestampClock | back to summary |
|---|---|
| pack-priv ConsoleLoggerTimestampClock(Clock clock) | |
| clock | back to summary |
|---|---|
| public Clock clock() Record Component getter of clock. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |