com.rethinkdb.model.Backtrace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qj-rethinkdb-driver Show documentation
Show all versions of qj-rethinkdb-driver Show documentation
Java driver for RethinkDB (Modified from Official 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;
}
}