org.apache.hadoop.hbase.util
Class LongUtils
java.lang.Object
org.apache.hadoop.hbase.util.LongUtils
@InterfaceAudience.Private
public class LongUtils
- extends Object
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 |
LongUtils
public LongUtils()
compare
public static int compare(long x,
long y)
- Compare two longs numerically.
- Parameters:
x
- the first long to comparey
- 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.