本文整理了Java中org.apache.commons.collections.Bag.uniqueSet()
方法的一些代码示例,展示了Bag.uniqueSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bag.uniqueSet()
方法的具体详情如下:
包路径:org.apache.commons.collections.Bag
类名称:Bag
方法名:uniqueSet
[英]Returns a Set of unique elements in the Bag.
Uniqueness constraints are the same as those in java.util.Set.
[中]
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
return getBag().uniqueSet();
}
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
return getBag().uniqueSet();
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
return getBag().uniqueSet();
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
return getBag().uniqueSet();
}
代码示例来源:origin: commons-collections/commons-collections
/**
* Returns <code>true</code> if the bag contains all elements in
* the given collection, respecting cardinality.
*
* @param other the bag to check against
* @return <code>true</code> if the Bag contains all the collection
*/
public boolean containsAll(Bag other) {
boolean result = true;
Iterator i = other.uniqueSet().iterator();
while (i.hasNext()) {
Object current = i.next();
boolean contains = getCount(current) >= other.getCount(current);
result = result && contains;
}
return result;
}
代码示例来源:origin: commons-collections/commons-collections
/**
* Returns <code>true</code> if the bag contains all elements in
* the given collection, respecting cardinality.
*
* @param other the bag to check against
* @return <code>true</code> if the Bag contains all the collection
*/
boolean containsAll(Bag other) {
boolean result = true;
Iterator it = other.uniqueSet().iterator();
while (it.hasNext()) {
Object current = it.next();
boolean contains = getCount(current) >= other.getCount(current);
result = result && contains;
}
return result;
}
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
synchronized (lock) {
Set set = getBag().uniqueSet();
return new SynchronizedBagSet(set, lock);
}
}
代码示例来源:origin: wildfly/wildfly
/**
* Returns <code>true</code> if the bag contains all elements in
* the given collection, respecting cardinality.
*
* @param other the bag to check against
* @return <code>true</code> if the Bag contains all the collection
*/
boolean containsAll(Bag other) {
boolean result = true;
Iterator it = other.uniqueSet().iterator();
while (it.hasNext()) {
Object current = it.next();
boolean contains = getCount(current) >= other.getCount(current);
result = result && contains;
}
return result;
}
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return TransformedSet.decorate(set, transformer);
}
代码示例来源:origin: wildfly/wildfly
/**
* Returns <code>true</code> if the bag contains all elements in
* the given collection, respecting cardinality.
*
* @param other the bag to check against
* @return <code>true</code> if the Bag contains all the collection
*/
public boolean containsAll(Bag other) {
boolean result = true;
Iterator i = other.uniqueSet().iterator();
while (i.hasNext()) {
Object current = i.next();
boolean contains = getCount(current) >= other.getCount(current);
result = result && contains;
}
return result;
}
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return UnmodifiableSet.decorate(set);
}
代码示例来源:origin: commons-collections/commons-collections
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return UnmodifiableSet.decorate(set);
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
synchronized (lock) {
Set set = getBag().uniqueSet();
return new SynchronizedBagSet(set, lock);
}
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return TransformedSet.decorate(set, transformer);
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return UnmodifiableSet.decorate(set);
}
代码示例来源:origin: wildfly/wildfly
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return UnmodifiableSet.decorate(set);
}
代码示例来源:origin: org.apache.directory.api/api-ldap-client-all
public Set uniqueSet() {
synchronized (lock) {
Set set = getBag().uniqueSet();
return new SynchronizedBagSet(set, lock);
}
}
代码示例来源:origin: org.jboss.eap/wildfly-client-all
public Set uniqueSet() {
synchronized (lock) {
Set set = getBag().uniqueSet();
return new SynchronizedBagSet(set, lock);
}
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
public Set uniqueSet() {
synchronized (lock) {
Set set = getBag().uniqueSet();
return new SynchronizedBagSet(set, lock);
}
}
代码示例来源:origin: org.apache.openjpa/openjpa-all
public Set uniqueSet() {
Set set = getBag().uniqueSet();
return UnmodifiableSet.decorate(set);
}
内容来源于网络,如有侵权,请联系作者删除!