Record Class BindingClassGenerator.ParsedBindingData

java.lang.Object
java.lang.Record
eu.cloudnetservice.ext.platforminject.processor.BindingClassGenerator.ParsedBindingData
Enclosing class:
BindingClassGenerator

public static record BindingClassGenerator.ParsedBindingData(boolean bindWildcardTypes, @NonNull String packageName, @NonNull String platform, @NonNull com.squareup.javapoet.ClassName boundElement, @NonNull Set<com.squareup.javapoet.ClassName> providingElements, @NonNull Set<com.squareup.javapoet.TypeName> providedGenericElements) extends Record
  • Field Details

    • bindWildcardTypes

      private final boolean bindWildcardTypes
      The field for the bindWildcardTypes record component.
    • packageName

      @NonNull private final @NonNull String packageName
      The field for the packageName record component.
    • platform

      @NonNull private final @NonNull String platform
      The field for the platform record component.
    • boundElement

      @NonNull private final @NonNull com.squareup.javapoet.ClassName boundElement
      The field for the boundElement record component.
    • providingElements

      @NonNull private final @NonNull Set<com.squareup.javapoet.ClassName> providingElements
      The field for the providingElements record component.
    • providedGenericElements

      @NonNull private final @NonNull Set<com.squareup.javapoet.TypeName> providedGenericElements
      The field for the providedGenericElements record component.
  • Constructor Details

    • ParsedBindingData

      public ParsedBindingData(boolean bindWildcardTypes, @NonNull @NonNull String packageName, @NonNull @NonNull String platform, @NonNull @NonNull com.squareup.javapoet.ClassName boundElement, @NonNull @NonNull Set<com.squareup.javapoet.ClassName> providingElements, @NonNull @NonNull Set<com.squareup.javapoet.TypeName> providedGenericElements)
      Creates an instance of a ParsedBindingData record class.
      Parameters:
      bindWildcardTypes - the value for the bindWildcardTypes record component
      packageName - the value for the packageName record component
      platform - the value for the platform record component
      boundElement - the value for the boundElement record component
      providingElements - the value for the providingElements record component
      providedGenericElements - the value for the providedGenericElements record component
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • bindWildcardTypes

      public boolean bindWildcardTypes()
      Returns the value of the bindWildcardTypes record component.
      Returns:
      the value of the bindWildcardTypes record component
    • packageName

      @NonNull public @NonNull String packageName()
      Returns the value of the packageName record component.
      Returns:
      the value of the packageName record component
    • platform

      @NonNull public @NonNull String platform()
      Returns the value of the platform record component.
      Returns:
      the value of the platform record component
    • boundElement

      @NonNull public @NonNull com.squareup.javapoet.ClassName boundElement()
      Returns the value of the boundElement record component.
      Returns:
      the value of the boundElement record component
    • providingElements

      @NonNull public @NonNull Set<com.squareup.javapoet.ClassName> providingElements()
      Returns the value of the providingElements record component.
      Returns:
      the value of the providingElements record component
    • providedGenericElements

      @NonNull public @NonNull Set<com.squareup.javapoet.TypeName> providedGenericElements()
      Returns the value of the providedGenericElements record component.
      Returns:
      the value of the providedGenericElements record component