Record Class SdkFunction

java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.generator.jtype.SdkFunction

public record SdkFunction(String functionModule, ApiFunction function, Map<ParserEngine.SdkType,SdkObject> typeLibrary) extends Record
  • Constructor Details

    • SdkFunction

      public SdkFunction(String functionModule, ApiFunction function, Map<ParserEngine.SdkType,SdkObject> typeLibrary)
      Creates an instance of a SdkFunction record class.
      Parameters:
      functionModule - the value for the functionModule record component
      function - the value for the function record component
      typeLibrary - the value for the typeLibrary record component
  • Method Details

    • poeticize

      public MethodSpec.Builder poeticize()
    • 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.
    • functionModule

      public String functionModule()
      Returns the value of the functionModule record component.
      Returns:
      the value of the functionModule record component
    • function

      public ApiFunction function()
      Returns the value of the function record component.
      Returns:
      the value of the function record component
    • typeLibrary

      public Map<ParserEngine.SdkType,SdkObject> typeLibrary()
      Returns the value of the typeLibrary record component.
      Returns:
      the value of the typeLibrary record component