equals() — spring-boot Function Reference
Architecture documentation for the equals() function in ConfigurationPropertyName.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 27c68f3d_4a99_f60a_533b_3cb6bc076b9d["equals()"] 20338f0d_1278_4ee8_2318_7a2fbc33ae58["bind()"] 20338f0d_1278_4ee8_2318_7a2fbc33ae58 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 1bb5eed9_3ff4_9a0c_915f_f8a6a8c14901["addProperties()"] 1bb5eed9_3ff4_9a0c_915f_f8a6a8c14901 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d a169668d_cd01_d9d4_0daf_7332fc1be967["isCandidate()"] a169668d_cd01_d9d4_0daf_7332fc1be967 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 75517234_f1dd_cf93_99ad_cac59df43c4f["isBetterSetter()"] 75517234_f1dd_cf93_99ad_cac59df43c4f -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d d990180a_4c17_eeb4_3f9f_ea1f9bd1181a["isUninitializedKotlinProperty()"] d990180a_4c17_eeb4_3f9f_ea1f9bd1181a -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 0878b6b7_0fe8_d4d6_9eb2_c58e10b59da1["toStringMatches()"] 0878b6b7_0fe8_d4d6_9eb2_c58e10b59da1 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 6d037054_808c_e8fc_9ee2_e7d3e79c795a["setFoo()"] 6d037054_808c_e8fc_9ee2_e7d3e79c795a -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 568574e5_a385_d42d_8ae0_837b89516030["beanPropertiesPreferMatchingType()"] 568574e5_a385_d42d_8ae0_837b89516030 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 5c917680_2321_d44f_abc5_d9ba88f137fe["isSet()"] 5c917680_2321_d44f_abc5_d9ba88f137fe -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 9240b0ee_9362_3192_c277_356ab3006d19["equals()"] 9240b0ee_9362_3192_c277_356ab3006d19 -->|calls| 27c68f3d_4a99_f60a_533b_3cb6bc076b9d 5acc70e6_66e3_8996_e541_fcd335154b61["getNumberOfElements()"] 27c68f3d_4a99_f60a_533b_3cb6bc076b9d -->|calls| 5acc70e6_66e3_8996_e541_fcd335154b61 ed20b28a_7f5d_a088_a379_4b77e92143b5["canShortcutWithSource()"] 27c68f3d_4a99_f60a_533b_3cb6bc076b9d -->|calls| ed20b28a_7f5d_a088_a379_4b77e92143b5 0fc42192_9b0a_a3da_b92c_873e4b869194["toString()"] 27c68f3d_4a99_f60a_533b_3cb6bc076b9d -->|calls| 0fc42192_9b0a_a3da_b92c_873e4b869194 0878b6b7_0fe8_d4d6_9eb2_c58e10b59da1["toStringMatches()"] 27c68f3d_4a99_f60a_533b_3cb6bc076b9d -->|calls| 0878b6b7_0fe8_d4d6_9eb2_c58e10b59da1 4cab22fa_2872_d8a9_193e_230e922dca3f["endsWithElementsEqualTo()"] 27c68f3d_4a99_f60a_533b_3cb6bc076b9d -->|calls| 4cab22fa_2872_d8a9_193e_230e922dca3f style 27c68f3d_4a99_f60a_533b_3cb6bc076b9d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyName.java lines 356–379
@Override
public boolean equals(Object obj) {
if (obj == this) {
return true;
}
if (obj == null || obj.getClass() != getClass()) {
return false;
}
ConfigurationPropertyName other = (ConfigurationPropertyName) obj;
if (getNumberOfElements() != other.getNumberOfElements()) {
return false;
}
if (this.elements.canShortcutWithSource(ElementType.UNIFORM)
&& other.elements.canShortcutWithSource(ElementType.UNIFORM)) {
return toString().equals(other.toString());
}
if (hashCode() != other.hashCode()) {
return false;
}
if (toStringMatches(toString(), other.toString())) {
return true;
}
return endsWithElementsEqualTo(other);
}
Domain
Subdomains
Calls
- canShortcutWithSource()
- endsWithElementsEqualTo()
- getNumberOfElements()
- hashCode()
- toString()
- toStringMatches()
Called By
- addProperties()
- beanPropertiesPreferMatchingType()
- bind()
- equals()
- isBetterSetter()
- isCandidate()
- isSet()
- isUninitializedKotlinProperty()
- setFoo()
- toStringMatches()
Source
Frequently Asked Questions
What does equals() do?
equals() is a function in the spring-boot codebase.
What does equals() call?
equals() calls 6 function(s): canShortcutWithSource, endsWithElementsEqualTo, getNumberOfElements, hashCode, toString, toStringMatches.
What calls equals()?
equals() is called by 10 function(s): addProperties, beanPropertiesPreferMatchingType, bind, equals, isBetterSetter, isCandidate, isSet, isUninitializedKotlinProperty, and 2 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free