Sha256: d4b9ab7acc8059c82c67994d5fb9a7d9546d76cdab05de1f30fef45a9b67a3ff

Contents?: true

Size: 565 Bytes

Versions: 102

Compression:

Stored size: 565 Bytes

Contents

package com.jrjackson;

import com.fasterxml.jackson.core.JsonParser;
import java.io.IOException;
import org.jruby.Ruby;
import org.jruby.RubyObject;

/**
 *
 * @author Guy Boertje
 */
public class RubyBigIntValueConverter implements RubyConverter {

    @Override
    public RubyObject convert(Ruby ruby, JsonParser jp) throws IOException {
        if (jp.getNumberType() == JsonParser.NumberType.BIG_INTEGER) {
            return RubyUtils.rubyBignum(ruby, jp.getBigIntegerValue());
        }
        return RubyUtils.rubyFixnum(ruby, jp.getLongValue());
    }
}

Version data entries

102 entries across 90 versions & 17 rubygems

Version Path
jrjackson-0.4.18-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
jrjackson-0.4.17-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
jrjackson-0.4.16-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
jrjackson-0.4.15-java src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.2.1.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.2.0 vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.2.0.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.26.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.14-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.25.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.24.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.23.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.22.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/jrjackson-0.4.8-java/src/main/java/com/jrjackson/RubyBigIntValueConverter.java