Codota Logo
F.forEach
Code IndexAdd Codota to your IDE (free)

How to use
forEach
method
in
org.gridgain.grid.util.typedef.F

Best Java code snippets using org.gridgain.grid.util.typedef.F.forEach (Showing top 5 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.gridgain/gridgain-core

/**
 * Calls given {@code side-effect only} closure over the each element of the provided array.
 *
 * @param c Array to call closure over.
 * @param f Side-effect only closure to call over the array.
 * @param p Optional set of predicates. Only if collection element evaluates
 *      to {@code true} for given predicates the closure will be applied to it.
 *      If no predicates provided - closure will be applied to all collection
 *      elements.
 * @param <X> Type of the free variable for the closure and type of the array
 *      elements.
 */
@SuppressWarnings("RedundantTypeArguments")
public static <X> void forEach(X[] c, GridInClosure<? super X> f, @Nullable GridPredicate<? super X>... p) {
  A.notNull(c, "c", f, "f");
  F.<X>forEach(asList(c), f, p);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public void undeploy(GridDeployment dep) {
  lock.writeLock().lock();
  try {
    GridInClosure<Map<Class<?>, Map<String, CachedResource>>> x = new CI1<Map<Class<?>, Map<String, CachedResource>>>() {
      @Override public void apply(Map<Class<?>, Map<String, CachedResource>> map) {
        if (map != null) {
          for (Map<String, CachedResource> m : map.values()) {
            if (m != null)
              undeploy(m.values());
          }
        }
      }
    };
    Map<Class<?>, Map<String, CachedResource>> map = dep.removeMeta(CLS_LDR_RSRC_CACHE);
    x.apply(map);
    Map<Class<?>, Map<Class<?>, Map<String, CachedResource>>> clsRsrcs = dep.removeMeta(CLS_RSRC_CACHE);
    if (clsRsrcs != null)
      F.forEach(clsRsrcs.values(), x);
  }
  finally {
    lock.writeLock().unlock();
  }
}
origin: org.gridgain/gridgain-core

if (!jobAlwaysActivate) {
  F.forEach(passiveJobs.values(), new CI1<GridJobWorker>() {
    @Override public void apply(GridJobWorker job) {
      cancelPassiveJob(job);
F.forEach(activeJobs.values(), new CI1<GridJobWorker>() {
  @Override public void apply(GridJobWorker job) {
    cancelActiveJob(job, sys);
origin: org.gridgain/gridgain-core

F.forEach(gridCfg.getCacheConfiguration(), new CI1<GridCacheConfiguration>() {
  @Override public void apply(GridCacheConfiguration c) {
    cacheCfgs.put(c.getName(), c);
origin: org.gridgain/gridgain-ggfs

F.forEach(gridCfg.getCacheConfiguration(), new CI1<GridCacheConfiguration>() {
  @Override public void apply(GridCacheConfiguration c) {
    cacheCfgs.put(c.getName(), c);
org.gridgain.grid.util.typedefFforEach

Popular methods of F

  • eq
  • isEmpty
  • t
  • viewReadOnly
  • addIfAbsent
  • asList
  • concat
  • first
  • firstEntry
  • identity
  • node2id
  • nodeIds
  • node2id,
  • nodeIds,
  • sumInt,
  • transform,
  • view,
  • alwaysFalse,
  • alwaysTrue,
  • and,
  • asArray

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • getExternalFilesDir (Context)
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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