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

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

Best Java code snippets using org.gridgain.grid.util.typedef.F.eq (Showing top 20 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

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (this == o)
    return true;
  if (!(o instanceof GridSecurityCredentials))
    return false;
  GridSecurityCredentials that = (GridSecurityCredentials)o;
  return F.eq(login, that.login) && F.eq(password, that.password) && F.eq(userObj, that.userObj);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"})
@Override public boolean equals(Object o) {
  if (this == o)
    return true;
  if (!(o instanceof GridBiTuple))
    return false;
  GridBiTuple<?, ?> t = (GridBiTuple<?, ?>)o;
  // Both nulls or equals.
  return F.eq(val1, t.val1) && F.eq(val2, t.val2);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (this == o)
    return true;
  if (!(o instanceof GridTuple3))
    return false;
  GridTuple3<?, ?, ?> t = (GridTuple3<?, ?, ?>)o;
  return F.eq(val1, t.val1) && F.eq(val2, t.val2) && F.eq(val3, t.val3);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (this == o)
    return true;
  if (!(o instanceof StatefulValue))
    return false;
  StatefulValue other = (StatefulValue)o;
  return F.eq(val, other.val) && F.eq(valStatus, other.valStatus);
}
origin: org.gridgain/gridgain-core

/**
 * @param cacheName Cache name.
 * @return {@code True} if this is Hadoop system cache.
 */
public static boolean isHadoopSystemCache(String cacheName) {
  return F.eq(cacheName, SYS_CACHE_HADOOP_MR);
}
origin: org.gridgain/gridgain-ggfs

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (o == this)
    return true;
  if (o == null || getClass() != o.getClass())
    return false;
  GridGgfsBlockLocationImpl that = (GridGgfsBlockLocationImpl)o;
  return len == that.len && start == that.start && F.eq(nodeIds, that.nodeIds) && F.eq(names, that.names) &&
    F.eq(hosts, that.hosts);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Nullable @Override public V remove(Object key) {
  V res = null;
  if (F.eq(key, k1)) {
    res = v1;
    v1 = null;
    k1 = null;
  }
  return res;
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (obj == null || getClass() != obj.getClass())
    return false;
  GridGgfsFileInfo that = (GridGgfsFileInfo)obj;
  return id.equals(that.id) && blockSize == that.blockSize && len == that.len && F.eq(affKey, that.affKey) &&
    F.eq(props, that.props) && F.eq(lockId, that.lockId);
}
origin: org.gridgain/gridgain-core

/**
 * Tries to concatenate this range with a given one. If ranges are not adjacent, will return {@code null}.
 *
 * @param range Range to concatenate with.
 * @return Concatenation result or {@code null} if ranges are not adjacent.
 */
@Nullable public GridGgfsFileAffinityRange concat(GridGgfsFileAffinityRange range) {
  if (endOff + 1 != range.startOff || !F.eq(affKey, range.affKey) || status != RANGE_STATUS_INITIAL)
    return null;
  return new GridGgfsFileAffinityRange(startOff, range.endOff, affKey);
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Nullable @Override public V remove(Object key) {
  if (F.eq(key, k5)) {
    V res = v5;
    v5 = null;
    k5 = null;
    return res;
  }
  return super.remove(key);
}
origin: org.gridgain/gridgain-core

  private void checkSame(String name, String propName, UUID rmtNodeId, Object rmtVal, Object locVal, String ggfsName)
    throws GridException {
    if (!F.eq(rmtVal, locVal))
      throw new GridException(name + " should be the same on all nodes in grid for GGFS configuration " +
        "(fix configuration or set " +
        "-D" + GG_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system " +
        "property ) [rmtNodeId=" + rmtNodeId +
        ", rmt" + propName + "=" + rmtVal +
        ", loc" + propName + "=" + locVal +
        ", ggfName=" + ggfsName + ']');
  }
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Nullable @Override public V get(Object k) {
  V v = super.get(k);
  return v != null ? v : (k4 != null && F.eq(k, k4)) ? v4 : null;
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Nullable @Override public V remove(Object key) {
  if (F.eq(key, k4)) {
    V res = v4;
    v4 = null;
    k4 = null;
    return res;
  }
  return super.remove(key);
}
origin: org.gridgain/gridgain-ggfs

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (o == this)
    return true;
  if (o == null || o.getClass() != getClass())
    return false;
  GridGgfsBlockKey that = (GridGgfsBlockKey)o;
  return blockId == that.blockId && fileId.equals(that.fileId) && F.eq(affKey, that.affKey) &&
    evictExclude == that.evictExclude;
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@Override public V get(Object k) {
  V v = super.get(k);
  return v != null ? v : (k2 != null && F.eq(k, k2)) ? v2 : null;
}
origin: org.gridgain/gridgain-ggfs

  private void checkSame(String name, String propName, UUID rmtNodeId, Object rmtVal, Object locVal, String ggfsName)
    throws GridException {
    if (!F.eq(rmtVal, locVal))
      throw new GridException(name + " should be the same on all nodes in grid for GGFS configuration " +
        "(fix configuration or set " +
        "-D" + GridSystemProperties.GG_SKIP_CONFIGURATION_CONSISTENCY_CHECK + "=true system " +
        "property ) [rmtNodeId=" + rmtNodeId +
        ", rmt" + propName + "=" + rmtVal +
        ", loc" + propName + "=" + locVal +
        ", ggfName=" + ggfsName + ']');
  }
}
origin: org.gridgain/gridgain-ggfs

/**
 * Tries to concatenate this range with a given one. If ranges are not adjacent, will return {@code null}.
 *
 * @param range Range to concatenate with.
 * @return Concatenation result or {@code null} if ranges are not adjacent.
 */
@Nullable public GridGgfsFileAffinityRange concat(GridGgfsFileAffinityRange range) {
  if (endOff + 1 != range.startOff || !F.eq(affKey, range.affKey) || status != RANGE_STATUS_INITIAL)
    return null;
  return new GridGgfsFileAffinityRange(startOff, range.endOff, affKey);
}
origin: org.gridgain/gridgain-core

  /** {@inheritDoc} */
  @Override public boolean contains(Object o) {
    A.notNull(o, "o");

    for (GridCacheEntry<K, V> e : map.values())
      if (F.isAll(e, filter) && F.eq(e.getValue(), o))
        return true;

    return false;
  }
}
origin: org.gridgain/gridgain-core

  @Override public boolean apply(GridCache<?, ?> c) {
    return !CU.UTILITY_CACHE_NAME.equals(c.name()) &&
      F.eq(spiName, c.configuration().getIndexingSpiName());
  }
}
origin: org.gridgain/gridgain-core

/** {@inheritDoc} */
@SuppressWarnings({"unchecked"})
@Override public boolean equals(Object obj) {
  if (obj == this)
    return true;
  if (!(obj instanceof GridCacheEntryImpl))
    return false;
  GridCacheEntryImpl<K, V> other = (GridCacheEntryImpl<K, V>)obj;
  V v1 = peek();
  V v2 = other.peek();
  return key.equals(other.key) && F.eq(ctx.cache().name(), other.ctx.cache().name()) && F.eq(v1, v2);
}
org.gridgain.grid.util.typedefFeq

Popular methods of F

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

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JFrame (javax.swing)
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