Class ScalarDefinition

  • All Implemented Interfaces:

    @Serializable() 
    public final class ScalarDefinition
     implements IGenericDefinition
                        

    Definition of a scalar in a Wrap ABI. A scalar is a primitive data type that represents a single value.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getType() Type of the scalar.
      Integer getKind() Kind of the definition.
      String getName() Optional name of the scalar.
      Boolean getRequired() Boolean indicating whether the scalar is required or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getType

         String getType()

        Type of the scalar. Must be one of "UInt", "UInt8", "UInt16", "UInt32", "Int", "Int8", "Int16", "Int32", "String", "Boolean", "Bytes", "BigInt", "BigNumber", or "JSON".

      • getRequired

         Boolean getRequired()

        Boolean indicating whether the scalar is required or not.