Checks to see if this weight is less than the given long value.

@param val
a long value.
@return true if this weight is less than the given long value, false
otherwise.
429303
public boolean lessThan(long val) {
        if (isInfinity && !posOrNeg) {
            return true;
        } else if (isInfinity && posOrNeg) {
            return false;
        } else {
            return this.val < val;
        }
    }
327753
public boolean containsLong(long value) {
		for (int i = 1; i < maxPoolSize; i++) {
			if (types[i] == LONG && readLong(i) == value) return true;
		}
		return false;
	}
1263150
private boolean isLong(final String str) {
		try {
			Long.valueOf(str);
			return true;
		} catch (NumberFormatException e) {
			return false;
		}
	}
951264
private static boolean isLong( Number n ) {
      if( n instanceof Long ){
         return true;
      }
      try{
         Long.parseLong( String.valueOf( n ) );
         return true;
      }catch( NumberFormatException e ){
         return false;
      }
   }
874791
function (val) {
            var rv = false;

            if (JS.isNumber(val)) {
                rv = val >= 0 && val < 100;
            }

            return rv;
        }
666473
public static boolean isRange(String value) {
        if (value == null) {
            return false;
        }
        try {
            Set<Integer> values = parseRange(value);
            return values.size() > 0;
        } catch (Exception e) {
            return false;
        }
    }
899263
public long toLong(Object val) {
    if (val == null) {
      return 0L;
    }
    else if (val instanceof Double) {
      if (!Double.isNaN(((Double) val).doubleValue())) {
        return 0;
      }
      else {
        return ((Double) val).longValue();
      }
    }
    else if (val instanceof Number) {
      return ((Number) val).longValue();
    }
    else if (val instanceof String) {
      if ("".equals(val)) {
        return 0;
      }
      else {
        return Long.parseLong((String) val);
      }
    }
    else if (val instanceof Boolean) {
      return ((Boolean) val).booleanValue() ? 1L : 0L;
    }
    else if (val instanceof Character) {
      return ((Character) val).charValue();
    }

    throw new ArithmeticException("Long coercion: " + val.getClass().getName() + ":(" + val + ")");
  }
993800
public static int checkBetween(int value, int min, int max) {
		if (value < min || value > max) {
			throw new IllegalArgumentException(StrUtil.format("Length must be between {} and {}.", min, max));
		}
		return value;
	}
1055075
public static function size($val, $min = null, $max = null): bool
    {
        if (!\is_int($val)) {
            if (\is_string($val)) {
                $val = Helper::strlen(\trim($val));
            } elseif (\is_array($val)) {
                $val = \count($val);
            } else {
                return false;
            }
        }

        return self::integer($val, $min, $max);
    }
320826
public static boolean isBetween(Number value, Number min, Number max) {
		Assert.notNull(value);
		Assert.notNull(min);
		Assert.notNull(max);
		final double doubleValue = value.doubleValue();
		return (doubleValue >= min.doubleValue()) && (doubleValue <= max.doubleValue());
	}
117536
public int count(double val) {
        int count = 0;
        for (int i=0; i<this.size(); i++) {
            if (this.getValue(i) == val) {
                count++;
            }
        }
        return count;
    }
1276064
private boolean isWithinRange(T value) {
        if (getMinInclusive() != null
                && compareTo(getMinInclusive(), value) > 0) {
            return false;
        }
        if (getMaxInclusive() != null
                && compareTo(getMaxInclusive(), value) < 0) {
            return false;
        }
        return true;
    }
532485
public static boolean areElementsLessThanOrEqual(
        LongTuple t, long value)
    {
        for (int i=0; i<t.getSize(); i++)
        {
            if (t.get(i) > value)
            {
                return false;
            }
        }
        return true;
    }
814931
public static boolean lessThan(Time small, Time big) {
        return compare(small, big, CompareWay.LT);
    }
49935
public static <T> boolean isLong(Class<T> field) {
        //to compatibility to scala
        return Long.class.getSimpleName().equalsIgnoreCase(field.getSimpleName());
    }
128068
public static function isSelfDescribing($val = null)
    {
        if (is_null($val)) {
            return null;
        }
        $val = (string) $val;
        for ($i=0; $i<strlen($val); $i++) {
            $_val   = $val{$i};
            $occ    = substr_count($val, $i);
            if ($_val != $occ) {
                return false;
            }
        }
        return true;
    }
1217205
public static boolean lessThan(SoyValue left, SoyValue right) {
    if (left instanceof SoyString && right instanceof SoyString) {
      return left.stringValue().compareTo(right.stringValue()) < 0;
    } else if (left instanceof IntegerData && right instanceof IntegerData) {
      return left.longValue() < right.longValue();
    } else {
      return left.numberValue() < right.numberValue();
    }
  }