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

How to use
addOther
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.addOther (Showing top 4 results out of 315)

origin: org.jruby/jruby-complete

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: org.jruby/jruby-core

/** rb_big_plus
 *
 */
@Override
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return op_plus(context, ((RubyFixnum) other).getLongValue());
  }
  if (other instanceof RubyBignum) {
    return op_plus(context, ((RubyBignum) other).value);
  }
  if (other instanceof RubyFloat) {
    return addFloat((RubyFloat) other);
  }
  return addOther(context, other);
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

/** rb_big_plus
 *
 */
@JRubyMethod(name = "+", required = 1)
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return addFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return addBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return addFloat((RubyFloat)other);
  }
  return addOther(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/** rb_big_plus
 *
 */
@JRubyMethod(name = "+", required = 1)
public IRubyObject op_plus(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return addFixnum(((RubyFixnum)other).getLongValue());
  } else if (other instanceof RubyBignum) {
    return addBignum(((RubyBignum)other).value);
  } else if (other instanceof RubyFloat) {
    return addFloat((RubyFloat)other);
  }
  return addOther(context, other);
}
org.jrubyRubyBignumaddOther

Popular methods of RubyBignum

  • newBignum
  • getLongValue
  • getValue
    Getter for property value.
  • <init>
  • addFloat
  • 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

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ImageIO (javax.imageio)
  • 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