Record Class Sdk

java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Sdk

public record Sdk(tech.deplant.java4ever.binding.Context context, Integer debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) extends Record
  • Constructor Details

    • Sdk

      public Sdk(tech.deplant.java4ever.binding.Context context, Integer debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig)
      Creates an instance of a Sdk record class.
      Parameters:
      context - the value for the context record component
      debugTreeTimeout - the value for the debugTreeTimeout record component
      clientConfig - the value for the clientConfig record component
      explorerConfig - the value for the explorerConfig record component
      environmentConfig - the value for the environmentConfig record component
  • Method Details

    • builder

      public static Sdk.Builder builder()
    • endpoints

      public String[] endpoints()
    • version

      public String version() throws tech.deplant.java4ever.binding.EverSdkException
      Throws:
      tech.deplant.java4ever.binding.EverSdkException
    • convertMap

      public <T> T convertMap(Map<String,Object> inputMap, Class<T> outputClass)
    • 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

      public void saveContract(String name, OwnedContract contract) throws IOException
      Throws:
      IOException
    • saveKeys

      public void saveKeys(String name, Credentials keys) throws IOException
      Throws:
      IOException
    • executionOptions

      public tech.deplant.java4ever.binding.Tvm.ExecutionOptions executionOptions()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • context

      public tech.deplant.java4ever.binding.Context context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • debugTreeTimeout

      public Integer debugTreeTimeout()
      Returns the value of the debugTreeTimeout record component.
      Returns:
      the value of the debugTreeTimeout record component
    • clientConfig

      public tech.deplant.java4ever.binding.Client.ClientConfig clientConfig()
      Returns the value of the clientConfig record component.
      Returns:
      the value of the clientConfig record component
    • explorerConfig

      public ExplorerConfig explorerConfig()
      Returns the value of the explorerConfig record component.
      Returns:
      the value of the explorerConfig record component
    • environmentConfig

      public EnvironmentConfig environmentConfig()
      Returns the value of the environmentConfig record component.
      Returns:
      the value of the environmentConfig record component