mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
add VirtualNetworkRoute.hashCode
This commit is contained in:
parent
d60929514b
commit
d0c0585553
1 changed files with 12 additions and 0 deletions
|
@ -127,4 +127,16 @@ public final class VirtualNetworkRoute implements Comparable<VirtualNetworkRoute
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
|
||||||
|
int result = 17;
|
||||||
|
result = 37 * result + (target == null ? 0 : target.hashCode());
|
||||||
|
result = 37 * result + (via == null ? 0 : via.hashCode());
|
||||||
|
result = 37 * result + flags;
|
||||||
|
result = 37 * result + metric;
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue