$darkmode
DENOPTIM
AttachmentPointComparator.java
Go to the documentation of this file.
1package denoptim.graph;
2
3/*
4 * DENOPTIM
5 * Copyright (C) 2019 Marco Foscato <marco.foscato@uib.no>
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published
9 * by the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21import java.util.Comparator;
22
31public class AttachmentPointComparator implements Comparator<AttachmentPoint>
32{
33 @Override
35 {
36 return ap1.compareTo(ap2);
37 }
38}
39
Comparator for DENOPTIMAttachmentPoints.
int compare(AttachmentPoint ap1, AttachmentPoint ap2)
An attachment point (AP) is a possibility to attach a Vertex onto the vertex holding the AP (i....
int compareTo(AttachmentPoint other)
Compares this and another attachment points based on their unique identifier.