public static class PrioritySpec.Builder
extends java.lang.Object
PrioritySpec.| Constructor and Description |
|---|
Builder() |
Builder(java.util.Comparator<ParameterType<?,?>> comparator) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull PrioritySpec.Builder |
addComparator(@NotNull java.util.Comparator<ParameterType<?,?>> newComparator)
Adds the given comparator.
|
@NotNull PrioritySpec |
build()
Builds a
PrioritySpec out of this builder |
@NotNull PrioritySpec.Builder |
higherThan(java.lang.Class<? extends ParameterType<?,?>> parameterType)
Declares this parameter to have higher priority over the specified
parameter type
|
@NotNull PrioritySpec.Builder |
lowerThan(java.lang.Class<? extends ParameterType<?,?>> parameterType)
Declares this parameter to have lower priority than the specified
parameter type
|
public Builder()
public Builder(java.util.Comparator<ParameterType<?,?>> comparator)
@NotNull public @NotNull PrioritySpec.Builder addComparator(@NotNull @NotNull java.util.Comparator<ParameterType<?,?>> newComparator)
newComparator - The parameter comparator@NotNull public @NotNull PrioritySpec.Builder higherThan(java.lang.Class<? extends ParameterType<?,?>> parameterType)
parameterType - Parameter type to come before@NotNull public @NotNull PrioritySpec.Builder lowerThan(java.lang.Class<? extends ParameterType<?,?>> parameterType)
parameterType - Parameter type to come after@Contract(value="-> new",
pure=true)
@NotNull
public @NotNull PrioritySpec build()
PrioritySpec out of this builder