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

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

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

import org.json.simple.JSONArray;

import java.util.Optional;

public class Profile {

    private JSONArray profileObj;

    private Profile(JSONArray profileObj){
        this.profileObj = profileObj;
    }

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

    public JSONArray getProfileObj(){
        return profileObj;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy