All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rethinkdb.model.Backtrace Maven / Gradle / Ivy

There is a newer version: 2.3.2.20160729
Show newest version
package com.rethinkdb.model;

import org.json.simple.JSONArray;

import java.util.Optional;

public class Backtrace {

    private JSONArray rawBacktrace;

    private Backtrace(JSONArray rawBacktrace){
        this.rawBacktrace = rawBacktrace;
    }

    public static Optional fromJSONArray(JSONArray rawBacktrace) {
        if(rawBacktrace == null || rawBacktrace.size() == 0){
            return Optional.empty();
        }else{
            return Optional.of(new Backtrace(rawBacktrace));
        }
    }

    public JSONArray getRawBacktrace(){
        return rawBacktrace;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy