Java Number Minus minus(Integer a, Integer b)

Here you can find the source of minus(Integer a, Integer b)

Description

minus

License

Open Source License

Declaration

public static Integer minus(Integer a, Integer b) 

Method Source Code

//package com.java2s;
/**//w  ww.  java2s.  co m
 * PureInfo Force
 * @(#)NumberUtil.java   1.0 Oct 23, 2005
 * 
 * Copyright(c) 2004-2005, PureInfo Information Technology Corp. Ltd. 
 * All rights reserved, see the license file.
 * 
 * www.pureinfo.com.cn
 */

public class Main {
    public static Integer minus(Integer a, Integer b) {
        return new Integer(a.intValue() - b.intValue());
    }

    public static Long minus(Long a, Long b) {
        return new Long(a.longValue() - b.longValue());
    }

    public static Short minus(Short a, Short b) {
        return new Short((short) (a.shortValue() - b.shortValue()));
    }
}

Related

  1. minus(double a[], double b)
  2. minus(double[] a)
  3. minus(double[] p, double[] q)
  4. minus(double[][] x, double[][] y, double[][] r)
  5. minus(int flags, int set)
  6. minus(Number n)
  7. minus(Number n)
  8. minus(String bigger, String smaller)
  9. minus(String second, String first)