source: java2python/geniuswebtranslator/geniuswebsrc/geniusweb/profile/FullOrdering.java@ 877

Last change on this file since 877 was 825, checked in by wouter, 5 months ago

#291 move annotation to above the javadoc

File size: 1.1 KB
Line 
1package geniusweb.profile;
2
3import org.eclipse.jdt.annotation.NonNull;
4
5import geniusweb.issuevalue.Bid;
6
7/**
8 * As {@link PartialOrdering}, but with more strict requirement on
9 * {@link #isPreferredOrEqual(geniusweb.issuevalue.Bid, geniusweb.issuevalue.Bid)}
10 */
11public interface FullOrdering extends PartialOrdering {
12 @Override
13 /**
14 * @param bid1 the first item's utility/preference
15 * @param bid2 the second item's utility/preference
16 * @return true iff bid1 is considered better or equal (≥) than bid 2. In
17 * all other cases false is returned.
18 *
19 * This predicate should be implemented such that
20 * <ul>
21 * <li>For all b1 and b2, either b1 &ge; b2 or b2 &ge; b1.
22 * <li>b &ge; b (every bid is better or equal to itself)
23 * <li>If b1&ge;b2 and b2&ge;b1 then the two bids are considered
24 * equally good. Note that this differes from a partial order in
25 * mathematics.
26 * <li>it behaves transitive: if b1&ge;b2 and b2&ge;b3 then
27 * b1&ge;b3.
28 * </ul>
29 */
30 boolean isPreferredOrEqual(final @NonNull Bid bid1,
31 final @NonNull Bid bid2);
32}
Note: See TracBrowser for help on using the repository browser.