@Test public void test_decode() throws Exception { assertEquals(node1, NodeIdConv._decode(new byte[]{127, 0, 0, 1})); assertEquals(node2, NodeIdConv._decode(new byte[]{0, 0, 0, 1})); assertEquals(node3, NodeIdConv._decode(new byte[]{127, 124, 56, 1})); }
public static NodeId _decode(byte[] array) throws UnknownHostException, UnknownNodeIdException { return createNodeId(InetAddress.getByAddress(ArraysUtil.readBytes(array, 0, 4)).toString()); }
NodeIdConv { public static NodeId _decode(byte[] array) throws UnknownHostException, UnknownNodeIdException { return createNodeId(InetAddress.getByAddress(ArraysUtil.readBytes(array, 0, 4)).toString()); } }
NodeIdConv { public static NodeId _decode(byte[] array) throws UnknownHostException, UnknownNodeIdException { return createNodeId(InetAddress.getByAddress(ArraysUtil.readBytes(array, 0, 4)).toString()); } private  NodeIdConv(); }
NodeIdConv { public static NodeId _decode(byte[] array) throws UnknownHostException, UnknownNodeIdException { return createNodeId(InetAddress.getByAddress(ArraysUtil.readBytes(array, 0, 4)).toString()); } 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 _decode(byte[] array) throws UnknownHostException, UnknownNodeIdException { return createNodeId(InetAddress.getByAddress(ArraysUtil.readBytes(array, 0, 4)).toString()); } 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);  }