Interface IMutableNumeric<IMPLTYPE extends IMutableNumeric<IMPLTYPE>>

Type Parameters:
IMPLTYPE - Implementation type
All Superinterfaces:
Comparable<IMPLTYPE>, ICloneable<IMPLTYPE>, IComparable<IMPLTYPE>, IGenericImplTrait<IMPLTYPE>, IMutableObject<IMPLTYPE>, INumber
All Known Subinterfaces:
IMutableInteger<IMPLTYPE>
All Known Implementing Classes:
AbstractMutableInteger, AbstractMutableNumeric, MutableBigDecimal, MutableBigInteger, MutableByte, MutableChar, MutableDouble, MutableFloat, MutableInt, MutableLong, MutableShort

public interface IMutableNumeric<IMPLTYPE extends IMutableNumeric<IMPLTYPE>> extends IMutableObject<IMPLTYPE>, INumber
Base interface for mutable numeric values
Author:
Philip Helger
  • Method Details

    • is0

      boolean is0()
      Returns:
      true if the value is 0
    • isNot0

      default boolean isNot0()
      Returns:
      true if the value is not 0
    • isLT0

      boolean isLT0()
      Returns:
      true if the value is < 0
    • isLE0

      boolean isLE0()
      Returns:
      true if the value is ≤ 0
    • isGT0

      boolean isGT0()
      Returns:
      true if the value is > 0
    • isGE0

      boolean isGE0()
      Returns:
      true if the value is ≥ 0
    • getAsByte

      @Nonnull default Byte getAsByte()
    • getAsCharacter

      @Nonnull default Character getAsCharacter()
    • getAsDouble

      @Nonnull default Double getAsDouble()
    • getAsFloat

      @Nonnull default Float getAsFloat()
    • getAsInteger

      @Nonnull default Integer getAsInteger()
    • getAsLong

      @Nonnull default Long getAsLong()
    • getAsShort

      @Nonnull default Short getAsShort()
    • getAsBigInteger

      @Nonnull default BigInteger getAsBigInteger()
    • getAsBigDecimal

      @Nonnull default BigDecimal getAsBigDecimal()