Record Class ProxyFallback
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.bridge.config.ProxyFallback
- All Implemented Interfaces:
Comparable<ProxyFallback>
public record ProxyFallback(int priority, @NonNull String task, @Nullable String permission, @Nullable String forcedHost, @Unmodifiable @NonNull Set<String> availableOnGroups)
extends Record
implements Comparable<ProxyFallback>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Unmodifiable @NonNull Set<String> The field for theavailableOnGroupsrecord component.The field for theforcedHostrecord component.The field for thepermissionrecord component.private final intThe field for thepriorityrecord component.The field for thetaskrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailableOnGroupsrecord component.static @NonNull ProxyFallback.Builderbuilder()static @NonNull ProxyFallback.Builderbuilder(@NonNull ProxyFallback fallback) intfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theforcedHostrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepermissionrecord component.intpriority()Returns the value of thepriorityrecord component.task()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
priority
private final int priorityThe field for thepriorityrecord component. -
task
-
permission
-
forcedHost
-
availableOnGroups
The field for theavailableOnGroupsrecord component.
-
-
Constructor Details
-
ProxyFallback
public ProxyFallback(int priority, @NonNull @NonNull String task, @Nullable @Nullable String permission, @Nullable @Nullable String forcedHost, @NonNull @Unmodifiable @NonNull Set<String> availableOnGroups) Creates an instance of aProxyFallbackrecord class.- Parameters:
priority- the value for thepriorityrecord componenttask- the value for thetaskrecord componentpermission- the value for thepermissionrecord componentforcedHost- the value for theforcedHostrecord componentavailableOnGroups- the value for theavailableOnGroupsrecord component
-
-
Method Details
-
builder
-
builder
@NonNull public static @NonNull ProxyFallback.Builder builder(@NonNull @NonNull ProxyFallback fallback) -
compareTo
- Specified by:
compareToin interfaceComparable<ProxyFallback>
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
priority
public int priority()Returns the value of thepriorityrecord component.- Returns:
- the value of the
priorityrecord component
-
task
-
permission
-
forcedHost
-
availableOnGroups
Returns the value of theavailableOnGroupsrecord component.- Returns:
- the value of the
availableOnGroupsrecord component
-