summaryrefslogtreecommitdiffstats
path: root/sangria-listbinder/src/main/java/com/tavianator/sangria/listbinder/ListBinderBuilder.java
blob: 5dae59408ddc487c85406ec6f62a4a91fd1b54cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.tavianator.sangria.listbinder;

import com.tavianator.sangria.core.Priority;

/**
 * Fluent builder interface.
 *
 * @author Tavian Barnes (tavianator@tavianator.com)
 * @version 1.1
 * @since 1.1
 */
public interface ListBinderBuilder<T> {
    /**
     * @return A {@link ListBinder} with the default priority.
     * @see Priority
     */
    ListBinder<T> withDefaultPriority();

    /**
     * @return A {@link ListBinder} with the given priority.
     * @see Priority
     */
    ListBinder<T> withPriority(int weight, int... weights);
}