Record Class ThirdPartyUnderTest.SystemProperty
java.lang.Object
java.lang.Record
org.nuxeo.common.test.configuration.ThirdPartyUnderTest.SystemProperty
- Enclosing class:
ThirdPartyUnderTest
-
Constructor Summary
ConstructorsConstructorDescriptionSystemProperty
(String key) SystemProperty
(String key, String defaultValue) SystemProperty
(String key, String defaultValue, boolean isConfigured) Creates an instance of aSystemProperty
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedefaultValue
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisConfigured
record component.key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.withDefault
(String defaultValue)
-
Constructor Details
-
SystemProperty
-
SystemProperty
-
SystemProperty
Creates an instance of aSystemProperty
record class.- Parameters:
key
- the value for thekey
record componentdefaultValue
- the value for thedefaultValue
record componentisConfigured
- the value for theisConfigured
record component
-
-
Method Details
-
withDefault
-
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 '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
defaultValue
Returns the value of thedefaultValue
record component.- Returns:
- the value of the
defaultValue
record component
-
isConfigured
public boolean isConfigured()Returns the value of theisConfigured
record component.- Returns:
- the value of the
isConfigured
record component
-