Codota Logo
RubyBignum.op_and
Code IndexAdd Codota to your IDE (free)

How to use
op_and
method
in
org.jruby.RubyBignum

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

  • Common ways to obtain RubyBignum
private void myMethod () {
RubyBignum r =
  • Codota IconRubyRandom.RandomType rubyRandomRandomType;rubyRandomRandomType.getState()
  • Codota IconRuby runtime;String value;new RubyBignum(runtime, new BigInteger(value))
  • Codota IconRuby runtime;RubyBignum.newBignum(runtime, value)
  • Smart code suggestions by Codota
}
origin: org.jruby/jruby-complete

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

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

private IRubyObject op_and18(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_and(context, this);
}

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

private IRubyObject op_and19(ThreadContext context, IRubyObject other) {
  if (!((other = bitCoerce(other)) instanceof RubyFixnum)) {
    return ((RubyBignum) other).op_and(context, this);
  }
  return op_and18(context, other);
}

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

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

private IRubyObject op_and19(ThreadContext context, IRubyObject other) {
  if (!((other = bitCoerce(other)) instanceof RubyFixnum)) {
    return ((RubyBignum) other).op_and(context, this);
  }
  return op_and18(context, other);
}

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

private IRubyObject op_and18(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_and(context, this);
}

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

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

/** rb_big_and
 *
 */
@Override
public IRubyObject op_and(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return bignorm(context.runtime, value.and(((RubyBignum) other).value));
  }
  if (other instanceof RubyFixnum) {
    return op_and(context, (RubyFixnum) other);
  }
  return coerceBit(context, sites(context).checked_op_and, other);
}
origin: org.jruby/jruby-core

/** rb_big_and
 *
 */
@Override
public IRubyObject op_and(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyBignum) {
    return bignorm(context.runtime, value.and(((RubyBignum) other).value));
  }
  if (other instanceof RubyFixnum) {
    return op_and(context, (RubyFixnum) other);
  }
  return coerceBit(context, sites(context).checked_op_and, other);
}
origin: org.jruby/jruby-complete

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

/** fix_and
 *
 */
@Override
public IRubyObject op_and(ThreadContext context, IRubyObject other) {
  if (other instanceof RubyFixnum) {
    return context.runtime.newFixnum(value & ((RubyFixnum) other).value);
  }
  if (other instanceof RubyBignum) {
    return ((RubyBignum) other).op_and(context, this);
  }
  return coerceBit(context, sites(context).checked_op_and, other);
}
org.jrubyRubyBignumop_and

Javadoc

rb_big_and

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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now