Package org.btrg.uti

Source Code of org.btrg.uti.Remainder_

package org.btrg.uti;

import java.math.BigInteger;

public class Remainder_ {

  public synchronized static boolean has(int number, int denominator) {
    boolean returnValue = true;
    BigInteger foo = BigInteger.valueOf(number);
    if (BigInteger.valueOf(0L).compareTo(
        foo.remainder(BigInteger.valueOf(denominator))) == 0) {
      returnValue = false;
    }
    return returnValue;
  }

}
TOP

Related Classes of org.btrg.uti.Remainder_

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.