Tabnine Logo
RubyBignum.op_or
Code IndexAdd Tabnine to your IDE (free)

How to use
op_or
method
in
org.jruby.RubyBignum

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

origin: org.jruby/jruby-complete

@Deprecated
public IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  return op_or(context, other);
}
origin: org.jruby/jruby-core

@Deprecated
public IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  return op_or(context, other);
}
origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  if (!((other = bitCoerce(other)) instanceof RubyFixnum)) {
    return ((RubyBignum) other).op_or(context, this);
  }
  return op_or18(context, other);
}

origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject op_or18(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) {
    return newFixnum(context.runtime, value | ((RubyFixnum) other).value);
  }
  return ((RubyBignum) other).op_or(context, this);
}

origin: com.ning.billing/killbill-osgi-bundles-jruby

private IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  if (!((other = bitCoerce(other)) instanceof RubyFixnum)) {
    return ((RubyBignum) other).op_or(context, this);
  }
  return op_or18(context, other);
}

origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

private IRubyObject op_or18(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum || (other = fixCoerce(other)) instanceof RubyFixnum) {
    return newFixnum(context.runtime, value | ((RubyFixnum) other).value);
  }
  return ((RubyBignum) other).op_or(context, this);
}

origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "|", required = 1, compat = RUBY1_9)
public IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  return op_or(context, convertToInteger(context, other));
}
origin: com.ning.billing/killbill-osgi-bundles-jruby

@JRubyMethod(name = "|", required = 1, compat = RUBY1_9)
public IRubyObject op_or19(ThreadContext context, IRubyObject other) {
  return op_or(context, convertToInteger(context, other));
}
origin: org.jruby/jruby-complete

/** fix_or
 *
 */
@Override
public IRubyObject op_or(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return context.runtime.newFixnum(value | ((RubyFixnum) other).value);
  }
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_or(context, this);
  }
  return coerceBit(context, sites(context).checked_op_or, other);
}
origin: org.jruby/jruby-core

/** fix_or
 *
 */
@Override
public IRubyObject op_or(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return context.runtime.newFixnum(value | ((RubyFixnum) other).value);
  }
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_or(context, this);
  }
  return coerceBit(context, sites(context).checked_op_or, other);
}
origin: org.jruby/jruby-complete

/** rb_big_or
 *
 */
@Override
public IRubyObject op_or(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return bignorm(context.runtime, value.or(((RubyBignum) other).value));
  }
  if (other instanceof RubyFixnum) { // no bignorm here needed
    return op_or(context, (RubyFixnum) other);
  }
  return coerceBit(context, sites(context).checked_op_or, other);
}
origin: org.jruby/jruby-core

/** rb_big_or
 *
 */
@Override
public IRubyObject op_or(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return bignorm(context.runtime, value.or(((RubyBignum) other).value));
  }
  if (other instanceof RubyFixnum) { // no bignorm here needed
    return op_or(context, (RubyFixnum) other);
  }
  return coerceBit(context, sites(context).checked_op_or, other);
}
org.jrubyRubyBignumop_or

Javadoc

rb_big_or

Popular methods of RubyBignum

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

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Join (org.hibernate.mapping)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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