Tabnine Logo
RubyBignum.hash
Code IndexAdd Tabnine 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)

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 post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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