Interface NumericType

  • All Superinterfaces:
    Type
    All Known Implementing Classes:
    IntType

    public interface NumericType
    extends Type
    Numeric type interface. Any concrete numerical type or numerical sub-interface should implement/extend this interface.
    • Method Detail

      • is8Bits

        boolean is8Bits()
        Returns true if this numeric type follows a 8-bits format representation.
        Returns:
        true if this numeric type follows a 8-bits format representation; false otherwise
      • is16Bits

        boolean is16Bits()
        Returns true if this numeric type follows a 16-bits format representation.
        Returns:
        true if this numeric type follows a 16-bits format representation; false otherwise
      • is32Bits

        boolean is32Bits()
        Returns true if this numeric type follows a 32-bits format representation.
        Returns:
        true if this numeric type follows a 32-bits format representation; false otherwise
      • is64Bits

        boolean is64Bits()
        Returns true if this numeric type follows a 64-bits format representation.
        Returns:
        true if this numeric type follows a 64-bits format representation; false otherwise
      • isUnsigned

        boolean isUnsigned()
        Returns true if this numeric type is unsigned.
        Returns:
        true if this numeric type is unsigned; false otherwise
      • isIntegral

        boolean isIntegral()
        Returns true if this numeric type is integral, representing one of the numbers in the mathematical set Z.
        Returns:
        true if this numeric type is integral; false otherwise
      • isSigned

        default boolean isSigned()
        Returns true if this numeric type is signed.
        Returns:
        true if this numeric type is signed; false otherwise