1
2
3
4
5
6
7
8
9
10
11
12
13
14 package nl.tudelft.simulation.messaging.comparators;
15
16 import java.util.Comparator;
17
18 /***
19 * A reverse priority-based comparator to be able to compare messages based on
20 * fields. <br>
21 * <br>
22 * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
23 * Delft, the Netherlands. All rights reserved.
24 *
25 * See for project information <a href="http://www.simulation.tudelft.nl/">
26 * www.simulation.tudelft.nl </a>.
27 *
28 * The source code and binary code of this software is proprietary information
29 * of Delft University of Technology.
30 *
31 * @author <a href="http://www.simulation.tudelft.nl/people/jacobs.html">Peter
32 * Jacobs </a>
33 * @version $$Revision: 1.3 $$ $$Date: 2005/04/08 11:29:13 $$
34 */
35 public class ReversePriorityCompare extends PriorityCompare
36 {
37 /*** the serial version uid */
38 private static final long serialVersionUID = 12L;
39
40 /***
41 * constructs a new ReversePriorityCompare
42 */
43 public ReversePriorityCompare()
44 {
45 super();
46 super.setNegative(true);
47 }
48
49 /***
50 * constructs a new ReversePriorityCompare
51 *
52 * @param next the next comparator to use
53 */
54 public ReversePriorityCompare(final Comparator next)
55 {
56 super(next);
57 super.setNegative(true);
58 }
59 }