congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RubyBignum.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jruby.RubyBignum
constructor

Best Java code snippets using org.jruby.RubyBignum.<init> (Showing top 20 results out of 315)

origin: org.jruby/jruby-complete

public static RubyBignum newBignum(Ruby runtime, BigInteger value) {
  return new RubyBignum(runtime, value);
}
origin: org.jruby/jruby-complete

public static RubyBignum newBignum(Ruby runtime, String value) {
  return new RubyBignum(runtime, new BigInteger(value));
}
origin: org.jruby/jruby-complete

@Override
public final IRubyObject op_minus(ThreadContext context, long other) {
  BigInteger result = value.subtract(BigInteger.valueOf(other));
  if (value.signum() < 0 && other > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-core

@Override
public final IRubyObject op_minus(ThreadContext context, long other) {
  BigInteger result = value.subtract(BigInteger.valueOf(other));
  if (value.signum() < 0 && other > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-core

public final IRubyObject op_minus(ThreadContext context, BigInteger other) {
  BigInteger result = value.subtract(other);
  if (value.signum() < 0 && other.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-complete

public final IRubyObject op_plus(ThreadContext context, BigInteger other) {
  BigInteger result = value.add(other);
  if (value.signum() > 0 && other.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-complete

@Override
public final IRubyObject op_plus(ThreadContext context, long other) {
  BigInteger result = value.add(BigInteger.valueOf(other));
  if (other > 0 && value.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-complete

public final IRubyObject op_minus(ThreadContext context, BigInteger other) {
  BigInteger result = value.subtract(other);
  if (value.signum() < 0 && other.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-core

public final IRubyObject op_plus(ThreadContext context, BigInteger other) {
  BigInteger result = value.add(other);
  if (value.signum() > 0 && other.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: org.jruby/jruby-core

@Override
public final IRubyObject op_plus(ThreadContext context, long other) {
  BigInteger result = value.add(BigInteger.valueOf(other));
  if (other > 0 && value.signum() > 0) return new RubyBignum(context.runtime, result);
  return bignorm(context.runtime, result);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

public IRubyObject op_mul(ThreadContext context, long other) {
  Ruby runtime = context.runtime;
  BigInteger result = value.multiply(long2big(other));
  return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

public IRubyObject op_mul(ThreadContext context, long other) {
  Ruby runtime = context.runtime;
  BigInteger result = value.multiply(long2big(other));
  return result.signum() == 0 ? RubyFixnum.zero(runtime) : new RubyBignum(runtime, result);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject addBignum(BigInteger other) {
  BigInteger result = value.add(other);
  if (value.signum() > 0 && other.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject addBignum(BigInteger other) {
  BigInteger result = value.add(other);
  if (value.signum() > 0 && other.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractFixnum(long other) {
  BigInteger result = value.subtract(BigInteger.valueOf(other));
  if (value.signum() < 0 && other > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject addFixnum(long other) {
  BigInteger result = value.add(BigInteger.valueOf(other));
  if (other > 0 && value.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject addFixnum(long other) {
  BigInteger result = value.add(BigInteger.valueOf(other));
  if (other > 0 && value.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractFixnum(long other) {
  BigInteger result = value.subtract(BigInteger.valueOf(other));
  if (value.signum() < 0 && other > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractBignum(BigInteger other) {
  BigInteger result = value.subtract(other);
  if (value.signum() < 0 && other.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject subtractBignum(BigInteger other) {
  BigInteger result = value.subtract(other);
  if (value.signum() < 0 && other.signum() > 0) return new RubyBignum(getRuntime(), result);
  return bignorm(getRuntime(), result);
}
org.jrubyRubyBignum<init>

Popular methods of RubyBignum

  • newBignum
  • getLongValue
  • getValue
    Getter for property value.
  • addFloat
  • addOther
  • big2dbl
    rb_big2dbl
  • big2long
    rb_big2long
  • bignorm
    rb_big_norm
  • checkShiftDown
  • coerceBin
  • coerceCmp
  • compareTo
  • coerceCmp,
  • compareTo,
  • convertToDouble,
  • createBignumClass,
  • dbl_cmp,
  • divmod,
  • even_p,
  • fix2big,
  • getBigIntegerValue

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now