Class SandboxHashSet<T extends SandboxGraphElement>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<T>
-
- com.ensoftcorp.open.commons.sandbox.SandboxHashSet<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<T>
,java.util.Collection<T>
,java.util.Set<T>
public class SandboxHashSet<T extends SandboxGraphElement> extends java.util.HashSet<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SandboxHashSet(int sandboxInstanceID)
SandboxHashSet(Sandbox sandbox)
SandboxHashSet(SandboxGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T ge)
SandboxHashSet<T>
filter(java.lang.String attr, java.lang.Object value)
int
getSandboxInstanceID()
Returns the sandbox instance this graph element set belongs toT
one()
Returns one item from the set-
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
-
-
-
Constructor Detail
-
SandboxHashSet
public SandboxHashSet(int sandboxInstanceID)
-
SandboxHashSet
public SandboxHashSet(Sandbox sandbox)
-
SandboxHashSet
public SandboxHashSet(SandboxGraph graph)
-
-
Method Detail
-
getSandboxInstanceID
public int getSandboxInstanceID()
Returns the sandbox instance this graph element set belongs to- Returns:
-
add
public boolean add(T ge)
- Specified by:
add
in interfacejava.util.Collection<T extends SandboxGraphElement>
- Specified by:
add
in interfacejava.util.Set<T extends SandboxGraphElement>
- Overrides:
add
in classjava.util.HashSet<T extends SandboxGraphElement>
-
one
public T one()
Returns one item from the set- Returns:
-
filter
public SandboxHashSet<T> filter(java.lang.String attr, java.lang.Object value)
-
-