Interface URLFieldsEnum
- All Superinterfaces:
FriendlyEnum
- All Known Implementing Classes:
WPPathField
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 TypeMethodDescriptiondefault StringjoinFields(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
Joins the given fields into a single string, separated by commas.- Parameters:
baseField- the leading field prefixfields- the fields to join- Returns:
- a string containing the joined fields
-