Record Class ProxyFallbackConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.config.ProxyFallbackConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedefaultFallbackTaskrecord component.private final @NonNull List<ProxyFallback> The field for thefallbacksrecord component.The field for thetargetGrouprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionProxyFallbackConfiguration(@NonNull String targetGroup, @Nullable String defaultFallbackTask, @NonNull List<ProxyFallback> fallbacks) Creates an instance of aProxyFallbackConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(@NonNull ProxyFallbackConfiguration configuration) Returns the value of thedefaultFallbackTaskrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefallbacksrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
targetGroup
-
defaultFallbackTask
-
fallbacks
The field for thefallbacksrecord component.
-
-
Constructor Details
-
ProxyFallbackConfiguration
public ProxyFallbackConfiguration(@NonNull @NonNull String targetGroup, @Nullable @Nullable String defaultFallbackTask, @NonNull @NonNull List<ProxyFallback> fallbacks) Creates an instance of aProxyFallbackConfigurationrecord class.- Parameters:
targetGroup- the value for thetargetGrouprecord componentdefaultFallbackTask- the value for thedefaultFallbackTaskrecord componentfallbacks- the value for thefallbacksrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull ProxyFallbackConfiguration.Builder builder(@NonNull @NonNull ProxyFallbackConfiguration configuration) -
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). -
targetGroup
-
defaultFallbackTask
-
fallbacks
Returns the value of thefallbacksrecord component.- Returns:
- the value of the
fallbacksrecord component
-