api/src/main/java/com/tersesystems/echopraxia/api/Value.java
/**
   * Wraps a number with a Value.
   *
   * @param value the raw number value.
   * @return the Value
   */
Wraps a number with a Value.
@param value the raw number value.
@return the Value
Wraps a number with a Value . @param value the raw number value . @return the Value
@NotNull
  public static NumberValue<Integer> number(@NotNull Integer value) {
    if (value == null)
      return NumberValue.IntegerValue.Cache.cache[-NumberValue.IntegerValue.Cache.low];
    if (value >= NumberValue.IntegerValue.Cache.low && value <= NumberValue.IntegerValue.Cache.high)
      return NumberValue.IntegerValue.Cache.cache[value + (-NumberValue.IntegerValue.Cache.low)];
    return new NumberValue.IntegerValue(value);
  }
@ NotNull public static NumberValue < Integer > number ( @ NotNull Integer value ) { if ( value == null ) return NumberValue . IntegerValue . Cache . cache [ - NumberValue . IntegerValue . Cache . low ] ; if ( value >= NumberValue . IntegerValue . Cache . low && value <= NumberValue . IntegerValue . Cache . high ) return NumberValue . IntegerValue . Cache . cache [ value + ( - NumberValue . IntegerValue . Cache . low ) ] ; return new NumberValue . IntegerValue ( value ) ; }
Wraps a number with a Value.
Wraps a number with a Value .