Create a new number type. The specified kind must be a valid
integer or float kind.
Parameters: template - The type whose annotations to copy. Parameters: kind - The kind.
Method Detail
equal
public static boolean equal(Kind k1, Kind k2)(Code)
Determine whether the specified kinds equal each other. This
method treats implicit, int, and signed int types as equal.
Parameters: k1 - The first kind. Parameters: k2 - The second kind. true if the kinds are equal.
equalIgnoringSign
public static boolean equalIgnoringSign(Kind k1, Kind k2)(Code)
Determine whether the specified kinds equal each other, modulo
their signs. This method treats implicit, int, and signed int
types as equal.
Parameters: k1 - The first kind. Parameters: k2 - The second kind. true if the kinds are equal modulo theirsigns.
Determine whether this type equals the specified object. This
number equals the specified object if the specified object also
is a number and the two numbers' kinds are either the same or a
combination of the
Kind.INT int and
Kind.S_INTsigned int kinds.
Parameters: o - The object. true if this type equals the object.
Determine whether this number has the specified kind. Note that
this method uses
NumberT.equal(Kind,Kind) to perform the kind
comparison.
Parameters: kind - The kind. true if this number has the specified kind.