List of usage examples for java.util Set interface-usage
From source file IdentitySet.java
/** * Set that compares object by identity rather than equality. Wraps around a <code>IdentityHashMap</code> * * @author Emmanuel Bernard */ public class IdentitySet implements Set {
From source file com.facebook.litho.internal.ArraySet.java
/**
* A simple Set implementation backed by an array. Currently implemented as a wrapper around
* ArrayMap because Google's ArraySet is API23+ and not yet available from a support library.
* Google's ArraySet should be a drop-in replacement for this class, and will be a little more
* efficient and complete.
*/
From source file org.apache.openjpa.lib.util.ReferenceHashSet.java
/**
* A set whose values may be stored as weak or soft references.
*
* @author Abe White
* @nojavadoc
*/
From source file org.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashSet.java
/**
* A concurrent set whose values may be stored as weak or soft references. If
* the constructor is invoked with <code>refType</code> set to {@link #HARD},
* this uses a JDK1.5 {@link ConcurrentHashMap} under the covers. Otherwise,
* it uses a {@link ConcurrentReferenceHashMap}.
*
From source file com.github.helenusdriver.commons.collections.DirectedGraph.java
/**
* The <code>DirectedGraph</code> interface provides a collection of nodes with
* outgoing edges to other nodes.
*
* @copyright 2015-2015 The Helenus Driver Project Authors
*
From source file com.nextep.designer.util.IdentitySet.java
public class IdentitySet<E> implements Set<E> { private IdentityMap elts = new IdentityMap(); @Override public boolean add(E e) { if (!elts.containsKey(e)) {
From source file com.alibaba.wasp.master.DeadServer.java
/** * Class to hold dead servers list and utility querying dead server list. */ public class DeadServer implements Set<ServerName>, Cloneable { /** * Set of known dead servers. On znode expiration, servers are added here.
From source file ListSet.java
public class ListSet implements List, Set { private final List list = new ArrayList(); private final Set set = new HashSet(); public ListSet() { super();
From source file de.dhke.projects.cutil.collections.map.MapKeySetEntrySet.java
/**
*
* An implementation of a {@link Map#entrySet()}
* making use of the {@link Map#keySet() } as well
* as {@link Map#put(java.lang.Object, java.lang.Object) }
* and {@link Map#remove(java.lang.Object) } for its implementation.
From source file com.autonomy.aci.client.util.AciParameters.java
/**
* Utility class to make it easier to specify sets of <tt>AciParameter</tt> objects for sending with ACI actions. In the
* past you had to do something like:
* <pre>
* Set<AciParameter> parameters = new LinkedHashSet<AciParameter>();
* parameters.add(new AciParameter("action", "query"));