Interface URLFieldsEnum

All Superinterfaces:
FriendlyEnum
All Known Implementing Classes:
WPPathField

public non-sealed interface URLFieldsEnum extends FriendlyEnum
An interface for enum types that represent fields that can be used in a URL.

Classes that implement this interface must provide a string representation of the field that can be appended to a URL to fetch that field.

Author:
Yoham Gabriel B. @YGBStudio
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    joinFields(URLFieldsEnum baseField, URLFieldsEnum... fields)
    Joins the given fields into a single string, separated by commas.

    Methods inherited from interface net.ygbstudio.powerwp4j.base.extension.enums.FriendlyEnum

    value
  • Method Details

    • joinFields

      default String joinFields(URLFieldsEnum baseField, URLFieldsEnum... fields)
      Joins the given fields into a single string, separated by commas.
      Parameters:
      baseField - the leading field prefix
      fields - the fields to join
      Returns:
      a string containing the joined fields