Package com.spotify.github
Interface Parameters
-
- All Known Subinterfaces:
PullRequestParameters
,SearchParameters
- All Known Implementing Classes:
ImmutablePullRequestParameters
,ImmutableSearchParameters
public interface Parameters
Base interface for parameter types. It's slightly hacky as it relies on reflection. It is however nicer than having to copy and paste the same code in several places.The interface provides one default method
serialize()
.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default String
serialize()
Goes through all public methods defined in an interface that extends this interface and calls them in the context of the class that called this method, then joins the method name with the result it produced using an ampersand (&) as a delimiter.
-
-
-
Method Detail
-
serialize
default String serialize()
Goes through all public methods defined in an interface that extends this interface and calls them in the context of the class that called this method, then joins the method name with the result it produced using an ampersand (&) as a delimiter.It works on interfaces with deep inheritance and filters out any methods defined on this interface (with the assumption that they come from the same class loader).
- Returns:
- String of "key=value" joined on &
-
-