org.apache.cassandra.utils
Class BasicUtilities

java.lang.Object
  extended by org.apache.cassandra.utils.BasicUtilities

public class BasicUtilities
extends java.lang.Object

Author : Avinash Lakshman ( alakshman@facebook.com) & Prashant Malik ( pmalik@facebook.com )


Constructor Summary
BasicUtilities()
           
 
Method Summary
static int byteArrayToInt(byte[] arg)
           
static long byteArrayToLong(byte[] arg)
           
static short byteArrayToShort(byte[] arg)
           
static byte[] intToByteArray(int arg)
           
static byte[] longToByteArray(long arg)
           
static byte[] shortToByteArray(short arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicUtilities

public BasicUtilities()
Method Detail

longToByteArray

public static byte[] longToByteArray(long arg)

byteArrayToLong

public static long byteArrayToLong(byte[] arg)

intToByteArray

public static byte[] intToByteArray(int arg)

byteArrayToInt

public static int byteArrayToInt(byte[] arg)

shortToByteArray

public static byte[] shortToByteArray(short arg)

byteArrayToShort

public static short byteArrayToShort(byte[] arg)


Copyright © 2009 The Apache Software Foundation