java.util.concurrent.ConcurrentSkipListSet.containsAll()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(9.1k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中java.util.concurrent.ConcurrentSkipListSet.containsAll()方法的一些代码示例,展示了ConcurrentSkipListSet.containsAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ConcurrentSkipListSet.containsAll()方法的具体详情如下:
包路径:java.util.concurrent.ConcurrentSkipListSet
类名称:ConcurrentSkipListSet
方法名:containsAll

ConcurrentSkipListSet.containsAll介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.utils/org.eclipse.scada.utils

@Override
public boolean containsAll ( final Collection<?> c )
{
  return this.internalSet.containsAll ( c );
}

代码示例来源:origin: com.jtransc/jtransc-rt

public boolean equals(Object o) {
  if (o == this) return true;
  if (!(o instanceof Set)) return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: ibinti/bugvm

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul

/**
 * Compares the specified object with this set for equality.  Returns
 * <tt>true</tt> if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return <tt>true</tt> if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused)   {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: MobiVM/robovm

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: org.codehaus.jsr166-mirror/jsr166

/**
 * Compares the specified object with this set for equality.  Returns
 * <tt>true</tt> if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return <tt>true</tt> if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused)   {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * Compares the specified object with this set for equality.  Returns
 * <tt>true</tt> if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return <tt>true</tt> if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused)   {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Compares the specified object with this set for equality.  Returns
 * {@code true} if the specified object is also a set, the two sets
 * have the same size, and every member of the specified set is
 * contained in this set (or equivalently, every member of this set is
 * contained in the specified set).  This definition ensures that the
 * equals method works properly across different implementations of the
 * set interface.
 *
 * @param o the object to be compared for equality with this set
 * @return {@code true} if the specified object is equal to this set
 */
public boolean equals(Object o) {
  // Override AbstractSet version to avoid calling size()
  if (o == this)
    return true;
  if (!(o instanceof Set))
    return false;
  Collection<?> c = (Collection<?>) o;
  try {
    return containsAll(c) && c.containsAll(this);
  } catch (ClassCastException unused) {
    return false;
  } catch (NullPointerException unused) {
    return false;
  }
}

相关文章

微信公众号

最新文章

更多