mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-17 06:38:25 +00:00
add VirtualNetworkRoute.hashCode
This commit is contained in:
@ -127,4 +127,16 @@ public final class VirtualNetworkRoute implements Comparable<VirtualNetworkRoute
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user