src/java/org/apache/cassandra/utils/NodeId.java
/**
     * Function for test purposes, do not use otherwise.
     * Pack an int in a valid NodeId so that the resulting ids respects the
     * numerical ordering. Used for creating handcrafted but easy to
     * understand contexts in unit tests (see CounterContextTest).
     */
Function for test purposes, do not use otherwise.
Pack an int in a valid NodeId so that the resulting ids respects the
numerical ordering. Used for creating handcrafted but easy to
understand contexts in unit tests .
Function for test purposes do not use otherwise . Pack an int in a valid NodeId so that the resulting ids respects the numerical ordering . Used for creating handcrafted but easy to understand contexts in unit tests .
public static NodeId fromInt(int n)
    {
        long lowBits = 0xC000000000000000L | n;
        return new NodeId(ByteBuffer.allocate(16).putLong(0, 0).putLong(8, lowBits));
    }
public static NodeId fromInt ( int n ) { long lowBits = 0xC000000000000000L | n ; return new NodeId ( ByteBuffer . allocate ( 16 ) . putLong ( 0 , 0 ) . putLong ( 8 , lowBits ) ) ; }
Function for test purposes, do not use otherwise.
Function for test purposes do not use otherwise .