java.lang.Object
com.winterhavenmc.library.messagebuilder.adapters.pipeline.accessors.url.UrlAdapter
All Implemented Interfaces:
Accessor

public class UrlAdapter extends Object implements Accessor
  • Constructor Details

  • Method Details

    • adapt

      public Optional<UrlAddressable> adapt(Object obj)
      Description copied from interface: Accessor
      Attempts to adapt the given object to a type-specific representation for macro extraction.

      This method may return a known interface (e.g., Nameable) or a domain object suitable for field extraction by a resolver. If the object is not compatible, an empty Optional is returned.

      Specified by:
      adapt in interface Accessor
      Parameters:
      obj - the object to evaluate and adapt
      Returns:
      an optional adapted representation, or empty if not supported