aboutsummaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/processing/response/Ordered.java
blob: f9c4b779a4e316b0c6eacd2e5bb0744102c5f54c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.processing.response;

/**
 * This is an <i>optional marker interface</i>.
 * DataLists may implement this to return false to indicate that the order of the elements of
 * the list is insignificant. The usage of this is to allow the content of a list to be rendered in the order
 * in which it completes rather than in the order in which it is added to the list.
 *
 * @author  bratseth
 */
public interface Ordered {

    /** Returns false if the data in this list can be returned in any order. Default: true, meaning the order matters */
    boolean isOrdered();

}