Codota Logo
IntPredicate.or
Code IndexAdd Codota to your IDE (free)

How to use
or
method
in
java.util.function.IntPredicate

Best Java code snippets using java.util.function.IntPredicate.or (Showing top 8 results out of 315)

  • Common ways to obtain IntPredicate
private void myMethod () {
IntPredicate i =
  • Codota IconCheckedIntPredicate checkedIntPredicate;checkedIntPredicate.test(value)
  • Smart code suggestions by Codota
}
origin: com.tyro.oss/random-data

public static String randomAlphabeticStringWithSpace(int length) {
  IntPredicate isAlphabetic = Character::isAlphabetic;
  IntPredicate isSpace = Character::isSpaceChar;
  return random(length, 'A', 'z', isAlphabetic.or(isSpace));
}
origin: com.tyro.oss/random-data

public static String randomAlphanumericString(int length) {
  IntPredicate isAlphabetic = Character::isAlphabetic;
  IntPredicate isDigit = Character::isDigit;
  return random(length, '0', 'z', isAlphabetic.or(isDigit));
}
origin: net.sf.saxon/Saxon-HE

/**
 * Returns a composed predicate that represents a short-circuiting logical
 * OR of this predicate and another.  When evaluating the composed
 * predicate, if this predicate is {@code true}, then the {@code other}
 * predicate is not evaluated.
 * <p>
 * <p>Any exceptions thrown during evaluation of either predicate are relayed
 * to the caller; if evaluation of this predicate throws an exception, the
 * {@code other} predicate will not be evaluated.
 *
 * @param other a predicate that will be logically-ORed with this
 *              predicate
 * @return a composed predicate that represents the short-circuiting logical
 * OR of this predicate and the {@code other} predicate
 * @throws NullPointerException if other is null
 */
@Override
public IntPredicate or(IntPredicate other) {
  if (other instanceof IntSetPredicate) {
    return new IntSetPredicate(set.union(((IntSetPredicate)other).set));
  } else {
    return IntPredicate.super.or(other);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

/**
 * Returns a composed predicate that represents a short-circuiting logical
 * OR of this predicate and another.  When evaluating the composed
 * predicate, if this predicate is {@code true}, then the {@code other}
 * predicate is not evaluated.
 * <p>
 * <p>Any exceptions thrown during evaluation of either predicate are relayed
 * to the caller; if evaluation of this predicate throws an exception, the
 * {@code other} predicate will not be evaluated.
 *
 * @param other a predicate that will be logically-ORed with this
 *              predicate
 * @return a composed predicate that represents the short-circuiting logical
 * OR of this predicate and the {@code other} predicate
 * @throws NullPointerException if other is null
 */
@Override
public IntPredicate or(IntPredicate other) {
  if (other instanceof IntSetPredicate) {
    return new IntSetPredicate(set.union(((IntSetPredicate)other).set));
  } else {
    return IntPredicate.super.or(other);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

for (Map.Entry<String, Category> entry : CATEGORIES.entrySet()) {
  if (entry.getKey().charAt(0) == ch) {
    ip = ip == null ? entry.getValue() : ip.or(entry.getValue());
origin: net.sf.saxon/Saxon-HE

@Override
public IntPredicate getMatcher(NodeVectorTree tree) {
  switch (operator) {
    case Token.UNION:
      return nodetest1.getMatcher(tree).or(nodetest2.getMatcher(tree));
    case Token.INTERSECT:
      return nodetest1.getMatcher(tree).and(nodetest2.getMatcher(tree));
    case Token.EXCEPT:
      return new IntExceptPredicate(nodetest1.getMatcher(tree), nodetest2.getMatcher(tree));
    default:
      throw new IllegalArgumentException("Unknown operator in Combined Node Test");
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.saxon

@Override
public IntPredicate getMatcher(NodeVectorTree tree) {
  switch (operator) {
    case Token.UNION:
      return nodetest1.getMatcher(tree).or(nodetest2.getMatcher(tree));
    case Token.INTERSECT:
      return nodetest1.getMatcher(tree).and(nodetest2.getMatcher(tree));
    case Token.EXCEPT:
      return new IntExceptPredicate(nodetest1.getMatcher(tree), nodetest2.getMatcher(tree));
    default:
      throw new IllegalArgumentException("Unknown operator in Combined Node Test");
  }
}
origin: net.sf.saxon/Saxon-HE

for (Map.Entry<String, Category> entry : CATEGORIES.entrySet()) {
  if (entry.getKey().charAt(0) == ch) {
    ip = ip == null ? entry.getValue() : ip.or(entry.getValue());
java.util.functionIntPredicateor

Javadoc

Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another. When evaluating the composed predicate, if this predicate is true, then the otherpredicate is not evaluated.

Any exceptions thrown during evaluation of either predicate are relayed to the caller; if evaluation of this predicate throws an exception, the other predicate will not be evaluated.

Popular methods of IntPredicate

  • test
  • negate
  • and

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • String (java.lang)
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JOptionPane (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now