org.kuali.common.util.primitives
Class Numbers
java.lang.Object
org.kuali.common.util.primitives.Numbers
public final class Numbers
- extends Object
Method Summary |
static boolean |
between(int number,
int min,
int max)
|
static boolean |
isByte(long number)
|
static boolean |
isInt(long number)
|
static boolean |
isShort(long number)
|
static Number |
narrow(long number)
Return the smallest Number it is safe to return. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
between
public static boolean between(int number,
int min,
int max)
narrow
public static Number narrow(long number)
- Return the smallest Number it is safe to return. Returns a Byte, Short, Integer, or Long.
isByte
public static boolean isByte(long number)
isShort
public static boolean isShort(long number)
isInt
public static boolean isInt(long number)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.