Package net.shibboleth.idp.admin.impl
Record Class InstallableComponentGaugeSet.InstallableComponentDetails
java.lang.Object
java.lang.Record
net.shibboleth.idp.admin.impl.InstallableComponentGaugeSet.InstallableComponentDetails
- Record Components:
supportedState- support level of componentupdateVersion- update version available
- Enclosing class:
- InstallableComponentGaugeSet
static record InstallableComponentGaugeSet.InstallableComponentDetails(@Nonnull InstallableComponentSupport.SupportLevel supportedState, @Nullable InstallableComponentVersion updateVersion)
extends Record
Tracks information about an installed component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InstallableComponentSupport.SupportLevelThe field for thesupportedStaterecord component.private final InstallableComponentVersionThe field for theupdateVersionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionInstallableComponentDetails(InstallableComponentSupport.SupportLevel supportedState, InstallableComponentVersion updateVersion) Creates an instance of aInstallableComponentDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesupportedStaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdateVersionrecord component.
-
Field Details
-
supportedState
The field for thesupportedStaterecord component. -
updateVersion
The field for theupdateVersionrecord component.
-
-
Constructor Details
-
InstallableComponentDetails
InstallableComponentDetails(@Nonnull @NotEmpty InstallableComponentSupport.SupportLevel supportedState, @Nullable InstallableComponentVersion updateVersion) Creates an instance of aInstallableComponentDetailsrecord class.- Parameters:
supportedState- the value for thesupportedStaterecord componentupdateVersion- the value for theupdateVersionrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
supportedState
Returns the value of thesupportedStaterecord component.- Returns:
- the value of the
supportedStaterecord component
-
updateVersion
Returns the value of theupdateVersionrecord component.- Returns:
- the value of the
updateVersionrecord component
-