org.apache.cassandra.utils
Class BasicUtilities

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

public class BasicUtilities
extends java.lang.Object


Constructor Summary
BasicUtilities()
           
 
Method Summary
static byte[] booleanToByteArray(boolean b)
           
static boolean byteArrayToBoolean(byte[] arg)
           
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)

booleanToByteArray

public static byte[] booleanToByteArray(boolean b)

byteArrayToBoolean

public static boolean byteArrayToBoolean(byte[] arg)


Copyright © 2009 The Apache Software Foundation