Record Class DefaultPlatformPluginInfo<I, T, P extends PlatformEntrypoint>

java.lang.Object
java.lang.Record
eu.cloudnetservice.ext.platforminject.api.defaults.DefaultPlatformPluginInfo<I,T,P>
All Implemented Interfaces:
eu.cloudnetservice.driver.inject.InjectionLayerHolder<dev.derklaro.aerogel.Injector>, PlatformPluginInfo<I,T,P>

public record DefaultPlatformPluginInfo<I, T, P extends PlatformEntrypoint>(I id, T platformData, @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer, P extends PlatformEntrypoint platformPluginInstance, @NonNull Class<? extends PlatformEntrypoint> platformPluginClass) extends Record implements PlatformPluginInfo<I,T,P>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final I
    The field for the id record component.
    private final @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector>
    The field for the injectionLayer record component.
    private final T
    The field for the platformData record component.
    private final @NonNull Class<? extends PlatformEntrypoint>
    The field for the platformPluginClass record component.
    private final P
    The field for the platformPluginInstance record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultPlatformPluginInfo(I id, T platformData, @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer, P platformPluginInstance, @NonNull Class<? extends PlatformEntrypoint> platformPluginClass)
    Creates an instance of a DefaultPlatformPluginInfo record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    id()
    Returns the value of the id record component.
    @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector>
    Returns the value of the injectionLayer record component.
    Returns the value of the platformData record component.
    Returns the value of the platformPluginClass record component.
    Returns the value of the platformPluginInstance record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      @NonNull private final I id
      The field for the id record component.
    • platformData

      @NonNull private final T platformData
      The field for the platformData record component.
    • injectionLayer

      @NonNull private final @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer
      The field for the injectionLayer record component.
    • platformPluginInstance

      @NonNull private final P extends PlatformEntrypoint platformPluginInstance
      The field for the platformPluginInstance record component.
    • platformPluginClass

      @NonNull private final @NonNull Class<? extends PlatformEntrypoint> platformPluginClass
      The field for the platformPluginClass record component.
  • Constructor Details

    • DefaultPlatformPluginInfo

      public DefaultPlatformPluginInfo(@NonNull I id, @NonNull T platformData, @NonNull @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer, @NonNull P platformPluginInstance, @NonNull @NonNull Class<? extends PlatformEntrypoint> platformPluginClass)
      Creates an instance of a DefaultPlatformPluginInfo record class.
      Parameters:
      id - the value for the id record component
      platformData - the value for the platformData record component
      injectionLayer - the value for the injectionLayer record component
      platformPluginInstance - the value for the platformPluginInstance record component
      platformPluginClass - the value for the platformPluginClass record component
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface PlatformPluginInfo<I, T, P extends PlatformEntrypoint>
    • 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.
    • id

      @NonNull public I id()
      Returns the value of the id record component.
      Specified by:
      id in interface PlatformPluginInfo<I, T, P extends PlatformEntrypoint>
      Returns:
      the value of the id record component
    • platformData

      @NonNull public T platformData()
      Returns the value of the platformData record component.
      Specified by:
      platformData in interface PlatformPluginInfo<I, T, P extends PlatformEntrypoint>
      Returns:
      the value of the platformData record component
    • injectionLayer

      @NonNull public @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer()
      Returns the value of the injectionLayer record component.
      Specified by:
      injectionLayer in interface eu.cloudnetservice.driver.inject.InjectionLayerHolder<I>
      Returns:
      the value of the injectionLayer record component
    • platformPluginInstance

      @NonNull public P platformPluginInstance()
      Returns the value of the platformPluginInstance record component.
      Specified by:
      platformPluginInstance in interface PlatformPluginInfo<I, T, P extends PlatformEntrypoint>
      Returns:
      the value of the platformPluginInstance record component
    • platformPluginClass

      @NonNull public @NonNull Class<? extends PlatformEntrypoint> platformPluginClass()
      Returns the value of the platformPluginClass record component.
      Specified by:
      platformPluginClass in interface PlatformPluginInfo<I, T, P extends PlatformEntrypoint>
      Returns:
      the value of the platformPluginClass record component