java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Sdk
public record Sdk(tech.deplant.java4ever.binding.Context context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSdk
(tech.deplant.java4ever.binding.Context context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) Creates an instance of aSdk
record class. -
Method Summary
Modifier and TypeMethodDescriptiontech.deplant.java4ever.binding.Client.ClientConfig
Returns the value of theclientConfig
record component.tech.deplant.java4ever.binding.Context
context()
Returns the value of thecontext
record component.<T> T
convertMap
(Map<String, Object> inputMap, Class<T> outputClass) long
Returns the value of thedebugTreeTimeout
record component.<T> T
deserialize
(String inputString, Class<T> outputClass) String[]
Returns the value of theenvironmentConfig
record component.final boolean
Indicates whether some other object is "equal to" this one.tech.deplant.java4ever.binding.Tvm.ExecutionOptions
Returns the value of theexplorerConfig
record component.final int
hashCode()
Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNode
parseStruct
(Object struct) void
saveContract
(String name, OwnedContract contract) void
saveKeys
(String name, Credentials keys) final String
toString()
Returns a string representation of this record class.version()
-
Constructor Details
-
Sdk
public Sdk(tech.deplant.java4ever.binding.Context context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) Creates an instance of aSdk
record class.- Parameters:
context
- the value for thecontext
record componentdebugTreeTimeout
- the value for thedebugTreeTimeout
record componentclientConfig
- the value for theclientConfig
record componentexplorerConfig
- the value for theexplorerConfig
record componentenvironmentConfig
- the value for theenvironmentConfig
record component
-
-
Method Details
-
endpoints
-
version
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
convertMap
-
parseStruct
public com.fasterxml.jackson.databind.JsonNode parseStruct(Object struct) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserialize
public <T> T deserialize(String inputString, Class<T> outputClass) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
serialize
public String serialize(Object inputObject) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
saveContract
- Throws:
IOException
-
saveKeys
- Throws:
IOException
-
executionOptions
public tech.deplant.java4ever.binding.Tvm.ExecutionOptions executionOptions() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
context
public tech.deplant.java4ever.binding.Context context()Returns the value of thecontext
record component.- Returns:
- the value of the
context
record component
-
debugTreeTimeout
public long debugTreeTimeout()Returns the value of thedebugTreeTimeout
record component.- Returns:
- the value of the
debugTreeTimeout
record component
-
clientConfig
public tech.deplant.java4ever.binding.Client.ClientConfig clientConfig()Returns the value of theclientConfig
record component.- Returns:
- the value of the
clientConfig
record component
-
explorerConfig
Returns the value of theexplorerConfig
record component.- Returns:
- the value of the
explorerConfig
record component
-
environmentConfig
Returns the value of theenvironmentConfig
record component.- Returns:
- the value of the
environmentConfig
record component
-