Fields in record classes are truly final so might help to have a record here.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicLong | invocations
Record Component accessed by invocations(). |
| private final AtomicLong | |
| private final Method | |
| private final AtomicLong | |
| private final AtomicBoolean | published
Record Component accessed by published(). |
| private final AtomicLong |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | TimedMethod(AtomicLong invocations, AtomicLong time, AtomicLong minimum, AtomicLong maximum, Method method, AtomicBoolean published)
|
| 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 AtomicLong | |
| public AtomicLong | |
| public Method | |
| public AtomicLong | |
| public AtomicBoolean | |
| public AtomicLong | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public void |
| invocations | back to summary |
|---|---|
| private final AtomicLong invocations Record Component accessed by invocations(). | |
| maximum | back to summary |
|---|---|
| private final AtomicLong maximum Record Component accessed by maximum(). | |
| method | back to summary |
|---|---|
| private final Method method Record Component accessed by method(). | |
| minimum | back to summary |
|---|---|
| private final AtomicLong minimum Record Component accessed by minimum(). | |
| published | back to summary |
|---|---|
| private final AtomicBoolean published Record Component accessed by published(). | |
| time | back to summary |
|---|---|
| private final AtomicLong time Record Component accessed by time(). | |
| TimedMethod | back to summary |
|---|---|
| pack-priv TimedMethod(Method method) | |
| TimedMethod | back to summary |
|---|---|
| pack-priv TimedMethod(AtomicLong invocations, AtomicLong time, AtomicLong minimum, AtomicLong maximum, Method method, AtomicBoolean published) | |
| 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 | |
| invocations | back to summary |
|---|---|
| public AtomicLong invocations() Record Component getter of invocations. | |
| maximum | back to summary |
|---|---|
| public AtomicLong maximum() Record Component getter of maximum. | |
| method | back to summary |
|---|---|
| public Method method() Record Component getter of method. | |
| minimum | back to summary |
|---|---|
| public AtomicLong minimum() Record Component getter of minimum. | |
| published | back to summary |
|---|---|
| public AtomicBoolean published() Record Component getter of published. | |
| time | back to summary |
|---|---|
| public AtomicLong time() Record Component getter of time. | |
| 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. | |
| updateMinMax | back to summary |
|---|---|
| public void updateMinMax(long duration) | |