@Test public void testEqualTo() throws Exception { assertTrue(NodeIdConv.equalTo(node1, node1)); assertFalse(NodeIdConv.equalTo(node1, node3)); assertFalse(NodeIdConv.equalTo(node2, node3)); }
public static boolean equalTo(NodeId nodeId1, NodeId nodeId2) { return toString(nodeId1).equals(toString(nodeId2)); }
NodeIdConv { public static boolean equalTo(NodeId nodeId1, NodeId nodeId2) { return toString(nodeId1).equals(toString(nodeId2)); } }
NodeIdConv { public static boolean equalTo(NodeId nodeId1, NodeId nodeId2) { return toString(nodeId1).equals(toString(nodeId2)); } private  NodeIdConv(); }
NodeIdConv { public static boolean equalTo(NodeId nodeId1, NodeId nodeId2) { return toString(nodeId1).equals(toString(nodeId2)); } private  NodeIdConv(); static NodeId _decode(byte[] array); static NodeId create(int nodeId); static NodeId createNodeId(InetAddress inetAddress); static NodeId createNodeId(String prefix); static PeerSequence createPeerSequence(List<NodeId> nodeIds); static List<NodeId> decode(byte[] array); static boolean equalTo(NodeId nodeId1, NodeId nodeId2); static List<NodeId> getPeerSequence(PeerSequence peerSequence); static byte[] toBytes(List<NodeId> nodesIds); static byte[] toBytes(NodeId nodeId); static String toString(NodeId nodeId); static String toString(PeerSequence peerSequence); }
NodeIdConv { public static boolean equalTo(NodeId nodeId1, NodeId nodeId2) { return toString(nodeId1).equals(toString(nodeId2)); } private  NodeIdConv(); static NodeId _decode(byte[] array); static NodeId create(int nodeId); static NodeId createNodeId(InetAddress inetAddress); static NodeId createNodeId(String prefix); static PeerSequence createPeerSequence(List<NodeId> nodeIds); static List<NodeId> decode(byte[] array); static boolean equalTo(NodeId nodeId1, NodeId nodeId2); static List<NodeId> getPeerSequence(PeerSequence peerSequence); static byte[] toBytes(List<NodeId> nodesIds); static byte[] toBytes(NodeId nodeId); static String toString(NodeId nodeId); static String toString(PeerSequence peerSequence);  }