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

How to use
hash
method
in
org.jruby.RubyBignum

Best Java code snippets using org.jruby.RubyBignum.hash (Showing top 2 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-core

public static RubyFixnum safeHash(final ThreadContext context, IRubyObject obj) {
  Ruby runtime = context.runtime;
  IRubyObject hval = context.safeRecurse(sites(context).recursive_hash, runtime, obj, "hash", true);
  while (!(hval instanceof RubyFixnum)) {
    if (hval instanceof RubyBignum) {
      // This is different from MRI because we don't have rb_integer_pack
      return ((RubyBignum) hval).hash();
    }
    hval = hval.convertToInteger();
  }
  return (RubyFixnum) hval;
}
origin: org.jruby/jruby-complete

public static RubyFixnum safeHash(final ThreadContext context, IRubyObject obj) {
  Ruby runtime = context.runtime;
  IRubyObject hval = context.safeRecurse(sites(context).recursive_hash, runtime, obj, "hash", true);
  while (!(hval instanceof RubyFixnum)) {
    if (hval instanceof RubyBignum) {
      // This is different from MRI because we don't have rb_integer_pack
      return ((RubyBignum) hval).hash();
    }
    hval = hval.convertToInteger();
  }
  return (RubyFixnum) hval;
}
org.jrubyRubyBignumhash

Javadoc

rb_big_hash

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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Join (org.hibernate.mapping)
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