Interface ReadableNumberValue<N extends Number>

Type Parameters:
N - type of the observable value.
All Superinterfaces:
ReadableSimpleValue<N>, ReadableTypedValue<N>, ReadableValue<N>, Supplier<N>
All Known Subinterfaces:
BigDecimalExpression, BigIntegerExpression, ByteExpression, DoubleExpression, FloatExpression, IntegerExpression, LongExpression, NumberExpression<N>, ObservableBigDecimalValue, ObservableBigIntegerValue, ObservableByteValue, ObservableDoubleValue, ObservableFloatValue, ObservableIntegerValue, ObservableLongValue, ObservableNumberValue<N>, ObservableShortValue, ReadableBigDecimalValue, ReadableBigIntegerValue, ReadableByteValue, ReadableDoubleValue, ReadableFloatValue, ReadableIntegerValue, ReadableLongValue, ReadableShortValue, ShortExpression, WritableBigDecimalValue, WritableBigIntegerValue, WritableByteValue, WritableDoubleValue, WritableFloatValue, WritableIntegerValue, WritableLongValue, WritableNumberValue<N>, WritableShortValue
All Known Implementing Classes:
BigDecimalBinding, BigIntegerBinding, ByteBinding, DoubleBinding, FloatBinding, IntegerBinding, LongBinding, NumberBinding, ShortBinding

public interface ReadableNumberValue<N extends Number> extends ReadableSimpleValue<N>
Since:
1.0.0
  • Method Details

    • intValue

      default int intValue()
      Returns:
      the value converted to int. Will be 0 if undefined.
    • longValue

      default long longValue()
      Returns:
      the value converted to long. Will be 0 if undefined.
    • floatValue

      default float floatValue()
      Returns:
      the value converted to float. Will be 0 if undefined.
    • doubleValue

      default double doubleValue()
      Returns:
      the value converted to double. Will be 0 if undefined.
    • shortValue

      default short shortValue()
      Returns:
      the value converted to short. Will be 0 if undefined.
    • byteValue

      default byte byteValue()
      Returns:
      the value converted to byte. Will be 0 if undefined.