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
FieldsModifier and TypeFieldDescriptionprivate final IThe field for theidrecord component.private final @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> The field for theinjectionLayerrecord component.private final TThe field for theplatformDatarecord component.private final @NonNull Class<? extends PlatformEntrypoint> The field for theplatformPluginClassrecord component.private final PThe field for theplatformPluginInstancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPlatformPluginInfo(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 aDefaultPlatformPluginInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.@NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> Returns the value of theinjectionLayerrecord component.Returns the value of theplatformDatarecord component.@NonNull Class<? extends PlatformEntrypoint> Returns the value of theplatformPluginClassrecord component.Returns the value of theplatformPluginInstancerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
-
platformData
-
injectionLayer
-
platformPluginInstance
The field for theplatformPluginInstancerecord component. -
platformPluginClass
The field for theplatformPluginClassrecord 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 aDefaultPlatformPluginInforecord class.- Parameters:
id- the value for theidrecord componentplatformData- the value for theplatformDatarecord componentinjectionLayer- the value for theinjectionLayerrecord componentplatformPluginInstance- the value for theplatformPluginInstancerecord componentplatformPluginClass- the value for theplatformPluginClassrecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfacePlatformPluginInfo<I, T, P extends PlatformEntrypoint>
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Specified by:
idin interfacePlatformPluginInfo<I, T, P extends PlatformEntrypoint>- Returns:
- the value of the
idrecord component
-
platformData
Returns the value of theplatformDatarecord component.- Specified by:
platformDatain interfacePlatformPluginInfo<I, T, P extends PlatformEntrypoint>- Returns:
- the value of the
platformDatarecord component
-
injectionLayer
@NonNull public @NonNull eu.cloudnetservice.driver.inject.InjectionLayer<dev.derklaro.aerogel.Injector> injectionLayer()Returns the value of theinjectionLayerrecord component.- Specified by:
injectionLayerin interfaceeu.cloudnetservice.driver.inject.InjectionLayerHolder<I>- Returns:
- the value of the
injectionLayerrecord component
-
platformPluginInstance
Returns the value of theplatformPluginInstancerecord component.- Specified by:
platformPluginInstancein interfacePlatformPluginInfo<I, T, P extends PlatformEntrypoint>- Returns:
- the value of the
platformPluginInstancerecord component
-
platformPluginClass
Returns the value of theplatformPluginClassrecord component.- Specified by:
platformPluginClassin interfacePlatformPluginInfo<I, T, P extends PlatformEntrypoint>- Returns:
- the value of the
platformPluginClassrecord component
-