MCPcopy Index your code
hub / github.com/lightbend/config / startsWith

Method startsWith

config/src/main/java/com/typesafe/config/impl/Path.java:143–156  ·  view source on GitHub ↗
(Path other)

Source from the content-addressed store, hash-verified

141 }
142
143 boolean startsWith(Path other) {
144 Path myRemainder = this;
145 Path otherRemainder = other;
146 if (otherRemainder.length() <= myRemainder.length()) {
147 while(otherRemainder != null) {
148 if (!otherRemainder.first().equals(myRemainder.first()))
149 return false;
150 myRemainder = myRemainder.remainder();
151 otherRemainder = otherRemainder.remainder();
152 }
153 return true;
154 }
155 return false;
156 }
157
158 @Override
159 public boolean equals(Object other) {

Callers 14

hasValueMethod · 0.95
changeValueOnPathMethod · 0.95
addValueOnPathMethod · 0.95
getSystemPropertiesMethod · 0.80
renderMethod · 0.80
parseIncludeMethod · 0.80
parseIncludeResourceMethod · 0.80
mergeTwoMethod · 0.80
relativeToMethod · 0.80

Calls 4

lengthMethod · 0.95
firstMethod · 0.95
remainderMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected