Package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.instant
package com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.instant
Provides adapter support for objects that expose a timestamp via the
Instant API.
The Instantable
interface allows plugin-defined objects to participate in macro substitution using
instant-based placeholders such as:
{OBJECT.INSTANT}
At runtime, the
InstantAdapter
performs type checking to detect support for this interface and extract the instant value.
The value is then formatted using the current locale and time zone, via Java's built-in
DateTimeFormatter system, with a configurable
FormatStyle.
This adapter enables the generation of localized, human-readable date and time strings
from any object that implements Instantable.
- See Also:
-
Classes