Package org.apache.camel.spi
Record Class PropertiesResolvedValue
java.lang.Object
java.lang.Record
org.apache.camel.spi.PropertiesResolvedValue
public record PropertiesResolvedValue(String name, String originalValue, String value, String defaultValue, String source)
extends Record
Data about a
PropertiesComponent
property placeholder that has been resolved to a value by Camel.-
Constructor Summary
Constructors -
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.name()
Returns the value of thename
record component.Returns the value of theoriginalValue
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
PropertiesResolvedValue
public PropertiesResolvedValue(String name, String originalValue, String value, String defaultValue, String source) Creates an instance of aPropertiesResolvedValue
record class.- Parameters:
name
- the value for thename
record componentoriginalValue
- the value for theoriginalValue
record componentvalue
- the value for thevalue
record componentdefaultValue
- the value for thedefaultValue
record componentsource
- the value for thesource
record 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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
originalValue
Returns the value of theoriginalValue
record component.- Returns:
- the value of the
originalValue
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
defaultValue
Returns the value of thedefaultValue
record component.- Returns:
- the value of the
defaultValue
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-