/** * Check if a string is integer or long * * @param s the string * @return {@code true} if the string is integer or long * @see N#isInt(String) */ public static boolean isIntOrLong(String s) { return N.isInt(s); }
public static long randLongWithSymbol() { return randSymbol() * randLong(); }
public static int randIntWithSymbol() { return randSymbol() * randInt(); }
max = 100000L; long retVal = N.randLong(max); if (!positive) { retVal = -retVal;
public static final boolean neq(Number a, Number b) { return !eq(a, b); }
private static Type _type(Number n) { if (n instanceof Num) { return ((Num) n)._t; } else { return _type(n.getClass()); } }
public double exp() { return N.exp(doubleValue()); }
public double ceil() { return N.ceil(doubleValue()); }
public double floor() { return N.floor(doubleValue()); }
public double cbrt() { return N.cbrt(doubleValue()); }
public static int randIntWithSymbol() { return randSymbol() * randInt(); }
max = 100000L; long retVal = N.randLong(max); if (!positive) { retVal = -retVal;
public boolean eq(Number number) { return N.eq(this, number); }
private static Type _type(Number n) { if (n instanceof Num) { return ((Num) n)._t; } else { return _type(n.getClass()); } }
public double exp() { return N.exp(doubleValue()); }
public double ceil() { return N.ceil(doubleValue()); }
public double floor() { return N.floor(doubleValue()); }