@Override public int compareTo(Object o) { if (this.equals(o)) { return 0; } int result = ((Integer) (this.routerID)).compareTo((Integer) (((OspfPseudonode) o).routerID)); if (result != 0) { return this.drInterface.compareTo(((OspfPseudonode) o).drInterface); } return result; }
@Override public int compareTo(Object o) { if (this.equals(o)) { return 0; } return ((Ip4Address) (this.address)).compareTo((Ip4Address) (((IPv4AddressTlv) o).address)); }
Ip4Address otherPeerBgpId = other.getBgpSession().remoteInfo().bgpId(); if (!peerBgpId.equals(otherPeerBgpId)) { return (peerBgpId.compareTo(otherPeerBgpId) < 0); other.getBgpSession().remoteInfo().ip4Address(); if (!peerAddress.equals(otherPeerAddress)) { return (peerAddress.compareTo(otherPeerAddress) < 0);