org.apache.hadoop.hbase.util
Class LongUtils

java.lang.Object
  extended by org.apache.hadoop.hbase.util.LongUtils

@InterfaceAudience.Private
public class LongUtils
extends Object


Constructor Summary
LongUtils()
           
 
Method Summary
static int compare(long x, long y)
          Compare two longs numerically.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongUtils

public LongUtils()
Method Detail

compare

public static int compare(long x,
                          long y)
Compare two longs numerically.

Parameters:
x - the first long to compare
y - the second long to compare
Returns:
0 if equal, -1 if x < y, +1 if x > y


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.