MCPcopy Create free account
hub / github.com/davidgiven/luje / contains

Method contains

lib/java/lang/String.java:1917–1919  ·  view source on GitHub ↗

Determines if this String contains the sequence of characters in the CharSequence passed. @param cs the character sequence to search for. @return true if the sequence of characters are contained in this string, otherwise false. @since 1.5

(CharSequence cs)

Source from the content-addressed store, hash-verified

1915 * @since 1.5
1916 */
1917 public boolean contains(CharSequence cs) {
1918 return indexOf(cs.toString()) >= 0;
1919 }
1920
1921 /**
1922 * Returns the index within this object that is offset from {@code index} by

Callers

nothing calls this directly

Calls 2

indexOfMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected