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

com.starksign.utils.SubResource Maven / Gradle / Ivy

Go to download

Welcome to the Stark Sign Java SDK! This tool is made for Java developers who want to easily integrate with our API. This SDK version is compatible with the Stark Sign API v2.

The newest version!
package com.starksign.utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;


public abstract class SubResource {
    protected static class ClassData {
        public String name;
        public Class cls;

        public ClassData(Class cls, String name){
            this.cls = cls;
            this.name = name;
        }
    }

    public String toString() {
        String name = this.getClass().getSimpleName();
        Gson gson = new GsonBuilder().setPrettyPrinting().create();
        return name + "(" + gson.toJson(this) + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy