congrats Icon
New! Announcing our next generation AI code completions
Read here
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
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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