org.apache.accumulo.server.monitor.util.celltypes
Class NumberType<T extends Number>
java.lang.Object
org.apache.accumulo.server.monitor.util.celltypes.CellType<T>
org.apache.accumulo.server.monitor.util.celltypes.NumberType<T>
- All Implemented Interfaces:
- Comparator<T>
- Direct Known Subclasses:
- DurationType, ProgressChartType
public class NumberType<T extends Number>
- extends CellType<T>
Method Summary |
String |
alignment()
|
static String |
bigNumber(double big)
|
static String |
bigNumber(double big,
String[] SUFFIXES,
long base)
|
static String |
bigNumber(long big)
|
static String |
bigNumber(long big,
String[] SUFFIXES,
long base)
|
static String |
commas(double i)
|
static String |
commas(double d,
double errMin,
double errMax)
|
static String |
commas(double d,
double warnMin,
double warnMax,
double errMin,
double errMax)
|
static String |
commas(long i)
|
static String |
commas(long i,
long errMin,
long errMax)
|
static String |
commas(long i,
long warnMin,
long warnMax,
long errMin,
long errMax)
|
int |
compare(T o1,
T o2)
|
String |
format(Object obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberType
public NumberType(T warnMin,
T warnMax,
T errMin,
T errMax)
NumberType
public NumberType(T errMin,
T errMax)
NumberType
public NumberType()
format
public String format(Object obj)
- Specified by:
format
in class CellType<T extends Number>
compare
public int compare(T o1,
T o2)
commas
public static String commas(long i)
commas
public static String commas(long i,
long errMin,
long errMax)
commas
public static String commas(double i)
commas
public static String commas(double d,
double errMin,
double errMax)
commas
public static String commas(long i,
long warnMin,
long warnMax,
long errMin,
long errMax)
commas
public static String commas(double d,
double warnMin,
double warnMax,
double errMin,
double errMax)
bigNumber
public static String bigNumber(long big)
bigNumber
public static String bigNumber(double big)
bigNumber
public static String bigNumber(long big,
String[] SUFFIXES,
long base)
bigNumber
public static String bigNumber(double big,
String[] SUFFIXES,
long base)
alignment
public String alignment()
- Specified by:
alignment
in class CellType<T extends Number>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.