defaultElementEquals() — spring-boot Function Reference
Architecture documentation for the defaultElementEquals() function in ConfigurationPropertyName.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 8aa69731_1d81_ef29_4a8d_32ed04e2190e["defaultElementEquals()"] 07388bc7_3887_e4be_dded_08ca2fc82797["elementDiffers()"] 07388bc7_3887_e4be_dded_08ca2fc82797 -->|calls| 8aa69731_1d81_ef29_4a8d_32ed04e2190e 078d0419_5dac_13e0_535f_d4e66b97b64b["getLength()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 078d0419_5dac_13e0_535f_d4e66b97b64b 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 50ab77a1_5a37_b789_ed17_ece7194cd0be["isIndexed()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 50ab77a1_5a37_b789_ed17_ece7194cd0be 66f84641_103a_aca2_eafe_88a947b46547["remainderIsNotAlphanumeric()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 66f84641_103a_aca2_eafe_88a947b46547 56983625_becb_2cdb_d3ed_1a0eb7c431a9["charAt()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 56983625_becb_2cdb_d3ed_1a0eb7c431a9 430b149a_e3e6_97d3_bf18_d283af9cad2e["isAlphaNumeric()"] 8aa69731_1d81_ef29_4a8d_32ed04e2190e -->|calls| 430b149a_e3e6_97d3_bf18_d283af9cad2e style 8aa69731_1d81_ef29_4a8d_32ed04e2190e 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 464–495
private boolean defaultElementEquals(Elements e1, Elements e2, int i) {
int l1 = e1.getLength(i);
int l2 = e2.getLength(i);
boolean indexed1 = e1.getType(i).isIndexed();
boolean indexed2 = e2.getType(i).isIndexed();
int i1 = 0;
int i2 = 0;
while (i1 < l1) {
if (i2 >= l2) {
return remainderIsNotAlphanumeric(e1, i, i1);
}
char ch1 = indexed1 ? e1.charAt(i, i1) : Character.toLowerCase(e1.charAt(i, i1));
char ch2 = indexed2 ? e2.charAt(i, i2) : Character.toLowerCase(e2.charAt(i, i2));
if (!indexed1 && !ElementsParser.isAlphaNumeric(ch1)) {
i1++;
}
else if (!indexed2 && !ElementsParser.isAlphaNumeric(ch2)) {
i2++;
}
else if (ch1 != ch2) {
return false;
}
else {
i1++;
i2++;
}
}
if (i2 < l2) {
return remainderIsNotAlphanumeric(e2, i, i2);
}
return true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does defaultElementEquals() do?
defaultElementEquals() is a function in the spring-boot codebase.
What does defaultElementEquals() call?
defaultElementEquals() calls 6 function(s): charAt, getLength, getType, isAlphaNumeric, isIndexed, remainderIsNotAlphanumeric.
What calls defaultElementEquals()?
defaultElementEquals() is called by 1 function(s): elementDiffers.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free