Record Class NuggetDiscovery.ConfiguredTarget
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetDiscovery.ConfiguredTarget
- Record Components:
endpoint- endpoint descriptorexpectedNuggetId- optional exact nugget id expected laterexpectedName- optional expected human-readable nameprotocolMinimum- expected minimum admin protocol versionprotocolMaximum- expected maximum admin protocol version
- Enclosing class:
NuggetDiscovery
public static record NuggetDiscovery.ConfiguredTarget(NuggetDiscovery.EndpointDescriptor endpoint, String expectedNuggetId, String expectedName, int protocolMinimum, int protocolMaximum)
extends Record
Explicit configured target.
-
Constructor Summary
ConstructorsConstructorDescriptionConfiguredTarget(NuggetDiscovery.EndpointDescriptor endpoint, String expectedNuggetId, String expectedName) Creates a configured target using the current baseline protocol range.ConfiguredTarget(NuggetDiscovery.EndpointDescriptor endpoint, String expectedNuggetId, String expectedName, int protocolMinimum, int protocolMaximum) Creates a configured target. -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Returns the value of theendpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedNamerecord component.Returns the value of theexpectedNuggetIdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theprotocolMaximumrecord component.intReturns the value of theprotocolMinimumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfiguredTarget
public ConfiguredTarget(NuggetDiscovery.EndpointDescriptor endpoint, String expectedNuggetId, String expectedName) Creates a configured target using the current baseline protocol range.- Parameters:
endpoint- endpoint descriptorexpectedNuggetId- optional exact nugget id expected laterexpectedName- optional expected human-readable name
-
ConfiguredTarget
public ConfiguredTarget(NuggetDiscovery.EndpointDescriptor endpoint, String expectedNuggetId, String expectedName, int protocolMinimum, int protocolMaximum) Creates a configured target.
-
-
Method Details
-
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. -
endpoint
-
expectedNuggetId
Returns the value of theexpectedNuggetIdrecord component.- Returns:
- the value of the
expectedNuggetIdrecord component
-
expectedName
Returns the value of theexpectedNamerecord component.- Returns:
- the value of the
expectedNamerecord component
-
protocolMinimum
public int protocolMinimum()Returns the value of theprotocolMinimumrecord component.- Returns:
- the value of the
protocolMinimumrecord component
-
protocolMaximum
public int protocolMaximum()Returns the value of theprotocolMaximumrecord component.- Returns:
- the value of the
protocolMaximumrecord component
-