Package one.tranic.t.proxy
Record Class RegistryReader.ProxySettings
java.lang.Object
java.lang.Record
one.tranic.t.proxy.RegistryReader.ProxySettings
- Record Components:
server- the address of the proxy server; may be null if no proxy server is configured.override- rules for bypassing the proxy (e.g., specific hosts or addresses to ignore); may be null.enabled- a flag indicating whether proxy usage is enabled (true) or disabled (false).
- Enclosing class:
- RegistryReader
public static record RegistryReader.ProxySettings(@Nullable String server, @Nullable String override, boolean enabled)
extends Record
A record class representing proxy settings.
-
Constructor Summary
ConstructorsConstructorDescriptionProxySettings(@Nullable String server, @Nullable String override, boolean enabled) Creates an instance of aProxySettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringoverride()Returns the value of theoverriderecord component.@Nullable Stringserver()Returns the value of theserverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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. -
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. -
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 '=='. -
server
Returns the value of theserverrecord component.- Returns:
- the value of the
serverrecord component
-
override
Returns the value of theoverriderecord component.- Returns:
- the value of the
overriderecord component
-
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-