MCPcopy Create free account
hub / github.com/apache/calcite / exists

Method exists

core/src/main/java/org/apache/calcite/rex/RexUtil.java:1923–1931  ·  view source on GitHub ↗

Returns whether there is an element in list for which predicate is true.

(
      List<? extends E> list, Predicate1<E> predicate)

Source from the content-addressed store, hash-verified

1921 * {@code predicate} is true.
1922 */
1923 public static <E> boolean exists(
1924 List<? extends E> list, Predicate1<E> predicate) {
1925 for (E e : list) {
1926 if (predicate.apply(e)) {
1927 return true;
1928 }
1929 }
1930 return false;
1931 }
1932
1933 /**
1934 * Returns whether {@code predicate} is true for all elements of

Callers 15

isFlatMethod · 0.95
createGoldenFileMethod · 0.45
hasGitMethod · 0.45
testExistsMethod · 0.45
testExistsCorrelatedMethod · 0.45
haveGitMethod · 0.45
writeActualResultsMethod · 0.45
writeToFileMethod · 0.45
afterAllMethod · 0.45

Calls 1

applyMethod · 0.65

Tested by 12

createGoldenFileMethod · 0.36
hasGitMethod · 0.36
testExistsMethod · 0.36
testExistsCorrelatedMethod · 0.36
haveGitMethod · 0.36
writeActualResultsMethod · 0.36
afterAllMethod · 0.36
readModelByJsonMethod · 0.36
diffTestLogMethod · 0.36