mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
reimplement VirtualNetworkConfig.compareTo
This commit is contained in:
parent
8b724493cc
commit
7392a32cd8
1 changed files with 2 additions and 5 deletions
|
@ -223,12 +223,9 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(VirtualNetworkConfig cfg) {
|
||||
if(cfg.nwid == this.nwid) {
|
||||
return 0;
|
||||
} else {
|
||||
return this.nwid > cfg.nwid ? 1 : -1;
|
||||
}
|
||||
return Long.compare(this.nwid, cfg.nwid);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue