Interface StandardSignedIntegerType

All Superinterfaces:
ArithmeticType, IntegerType, ObjectType, SignedIntegerType, SignedOrUnsignedIntegerType, StandardBasicType, Type, UnqualifiedObjectType

public interface StandardSignedIntegerType extends SignedIntegerType, StandardBasicType
The 5 "standard" signed integer types. There are 5 standard signed types and 6 standard unsigned types (as BOOL exists only in unsigned form). The set of standard signed or unsigned integer types is a subset of the set of standard basic types, so the information provided by this interface is redundant---it is completely determined by the basic type kind. However, in some situations it is convenient to use this view of the information.
  • Method Details

    • getIntKind

      Returns the kind of standard signed integer
      Returns:
      the kind of standard signed integer
    • getMinimumMaxValue

      BigInteger getMinimumMaxValue()
      The minimum greatest integer in this type
      Returns:
      minimum greatest integer in this type
    • getMinimumMinValue

      BigInteger getMinimumMinValue()
      The minimum absolute value of the least integer in this type.
      Returns:
      minimum absolute value of the least integer in this type
    • inMinimumRange

      boolean inMinimumRange(BigInteger intVal)
      Is -m <= x <= M, where m=getMinimumMinValue(), M=getMinimumMaxValue.
      Parameters:
      intVal -
      Returns:
      true iff -m <= x <= M