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 thedefaultValuerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.Returns the value of theoriginalValuerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PropertiesResolvedValue
public PropertiesResolvedValue(String name, String originalValue, String value, String defaultValue, String source) Creates an instance of aPropertiesResolvedValuerecord class.- Parameters:
name- the value for thenamerecord componentoriginalValue- the value for theoriginalValuerecord componentvalue- the value for thevaluerecord componentdefaultValue- the value for thedefaultValuerecord componentsource- the value for thesourcerecord 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 thenamerecord component.- Returns:
- the value of the
namerecord component
-
originalValue
Returns the value of theoriginalValuerecord component.- Returns:
- the value of the
originalValuerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
defaultValue
Returns the value of thedefaultValuerecord component.- Returns:
- the value of the
defaultValuerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-