@Test public void testIsPositiveNumber() { Assert.assertFalse(NumberUtils.isPositiveNumber(-1L)); Assert.assertFalse(NumberUtils.isPositiveNumber(-10000000000000000L)); Assert.assertFalse(NumberUtils.isPositiveNumber(0)); Assert.assertFalse(NumberUtils.isPositiveNumber(1.6)); Assert.assertTrue(NumberUtils.isPositiveNumber(1)); }
public static boolean isPositiveNumber(Number number) { if (number == null) return false; return org.apache.commons.lang3.math.NumberUtils.isDigits(number.toString()) && number.byteValue() > 0; }
NumberUtils { public static boolean isPositiveNumber(Number number) { if (number == null) return false; return org.apache.commons.lang3.math.NumberUtils.isDigits(number.toString()) && number.byteValue() > 0; } }
NumberUtils { public static boolean isPositiveNumber(Number number) { if (number == null) return false; return org.apache.commons.lang3.math.NumberUtils.isDigits(number.toString()) && number.byteValue() > 0; }  }
NumberUtils { public static boolean isPositiveNumber(Number number) { if (number == null) return false; return org.apache.commons.lang3.math.NumberUtils.isDigits(number.toString()) && number.byteValue() > 0; }  static int toInt(String str); static long toLong(String str); static float toFloat(String str); static float toFloat(String str, float defaultValue); static double toDouble(String str); static double toDouble(String str, double defaultValue); static Integer createInteger(String str); static Long createLong(String str); static BigInteger createBigInteger(String str); static BigDecimal createBigDecimal(String str); static Float createFloat(String str); static Double createDouble(String str); static boolean isNumber(String str); static boolean isDigits(String str); static boolean isPositiveNumber(Number number); static long min(long[] array); static int min(int[] array); static short min(short[] array); static byte min(byte[] array); static double min(double[] array); static float min(float[] array); static long max(long[] array); static int max(int[] array); static short max(short[] array); static byte max(byte[] array); static double max(double[] array); static float max(float[] array); }
NumberUtils { public static boolean isPositiveNumber(Number number) { if (number == null) return false; return org.apache.commons.lang3.math.NumberUtils.isDigits(number.toString()) && number.byteValue() > 0; }  static int toInt(String str); static long toLong(String str); static float toFloat(String str); static float toFloat(String str, float defaultValue); static double toDouble(String str); static double toDouble(String str, double defaultValue); static Integer createInteger(String str); static Long createLong(String str); static BigInteger createBigInteger(String str); static BigDecimal createBigDecimal(String str); static Float createFloat(String str); static Double createDouble(String str); static boolean isNumber(String str); static boolean isDigits(String str); static boolean isPositiveNumber(Number number); static long min(long[] array); static int min(int[] array); static short min(short[] array); static byte min(byte[] array); static double min(double[] array); static float min(float[] array); static long max(long[] array); static int max(int[] array); static short max(short[] array); static byte max(byte[] array); static double max(double[] array); static float max(float[] array);  }