blob: 97ab3523039ef1eed166bde37637f4fa8eab538c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package dev.isxander.yacl3.api;
import org.jetbrains.annotations.NotNull;
import java.util.Collection;
public interface OptionAddable {
/**
* Adds an option to an abstract builder.
* To construct an option, use {@link Option#createBuilder(Class)}
*/
OptionAddable option(@NotNull Option<?> option);
/**
* Adds multiple options to an abstract builder.
* To construct an option, use {@link Option#createBuilder(Class)}
*/
OptionAddable options(@NotNull Collection<? extends Option<?>> options);
}
|