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