helix.graph.model.impl.memory
Class MemGSet<E extends GraphElement>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by helix.graph.model.impl.memory.MemGSet<E>
All Implemented Interfaces:
GSet<E>, Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>

public class MemGSet<E extends GraphElement>
extends HashSet<E>
implements GSet<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface helix.graph.model.GSet
RehashKey
 
Constructor Summary
MemGSet()
           
 
Method Summary
 void addIterable(Iterable<E> g)
           
 GSetFactory<E> factory()
           
 GSet<E> findMultiple(String registryKey, Object anyValue)
           
 GSet<E> findMultiple(String registryKey, RegistryValue registryValue)
           
 E findUnique(String registryKey, Object anyValue)
           
 E findUnique(String registryKey, RegistryValue registryValue)
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

MemGSet

public MemGSet()
Method Detail

factory

public GSetFactory<E> factory()
Specified by:
factory in interface GSet<E extends GraphElement>

addIterable

public void addIterable(Iterable<E> g)
Specified by:
addIterable in interface GSet<E extends GraphElement>

findUnique

public E findUnique(String registryKey,
                    RegistryValue registryValue)
                                  throws DuplicateValueException
Specified by:
findUnique in interface GSet<E extends GraphElement>
Throws:
DuplicateValueException

findUnique

public E findUnique(String registryKey,
                    Object anyValue)
                                  throws DuplicateValueException
Specified by:
findUnique in interface GSet<E extends GraphElement>
Throws:
DuplicateValueException

findMultiple

public GSet<E> findMultiple(String registryKey,
                            RegistryValue registryValue)
Specified by:
findMultiple in interface GSet<E extends GraphElement>

findMultiple

public GSet<E> findMultiple(String registryKey,
                            Object anyValue)
Specified by:
findMultiple in interface GSet<E extends GraphElement>