blob: 57be06c71126154ef45635023e4361330edf4b79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package dev.isxander.yacl.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);
}
|