Interface TagResolver.Single

All Superinterfaces:
TagResolver, TagResolver.WithoutArguments
Enclosing interface:
TagResolver

@NonExtendable public static interface TagResolver.Single extends TagResolver.WithoutArguments
A resolver that only handles a single tag key.
Since:
4.10.0
See Also:
  • Method Details

    • key

      @NotNull @NotNull String key()
      The key this resolver matches.

      The returned key is compared case-insensitively.

      Returns:
      the key
      Since:
      4.10.0
    • tag

      @NotNull @NotNull Tag tag()
      The tag returned by this resolver when the key is matching.
      Returns:
      the tag
      Since:
      4.10.0
    • resolve

      @Nullable default @Nullable Tag resolve(@TagPattern @NotNull @NotNull String name)
      Description copied from interface: TagResolver.WithoutArguments
      Resolve a tag based only on the provided name.
      Specified by:
      resolve in interface TagResolver.WithoutArguments
      Parameters:
      name - the provided name
      Returns:
      a tag, if any is known.
    • has

      default boolean has(@NotNull @NotNull String name)
      Description copied from interface: TagResolver.WithoutArguments
      Check if this resolver knows of a tag.
      Specified by:
      has in interface TagResolver
      Specified by:
      has in interface TagResolver.WithoutArguments
      Parameters:
      name - the tag name
      Returns:
      whether this tag is present