@Test public void testCreate() throws Exception { assertEquals(node1, NodeIdConv.create(2130706433)); assertEquals(node2, NodeIdConv.create(1)); assertEquals(node3, NodeIdConv.create(2138847233)); }
public static NodeId create(int nodeId) throws UnknownHostException, UnknownNodeIdException { return NodeIdConv._decode(ArraysUtil.int2bytes(nodeId)); }
NodeIdConv { public static NodeId create(int nodeId) throws UnknownHostException, UnknownNodeIdException { return NodeIdConv._decode(ArraysUtil.int2bytes(nodeId)); } }
NodeIdConv { public static NodeId create(int nodeId) throws UnknownHostException, UnknownNodeIdException { return NodeIdConv._decode(ArraysUtil.int2bytes(nodeId)); } private  NodeIdConv(); }
NodeIdConv { public static NodeId create(int nodeId) throws UnknownHostException, UnknownNodeIdException { return NodeIdConv._decode(ArraysUtil.int2bytes(nodeId)); } 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 NodeId create(int nodeId) throws UnknownHostException, UnknownNodeIdException { return NodeIdConv._decode(ArraysUtil.int2bytes(nodeId)); } 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);  }