Package edu.uiuc.ncsa.qdl.variables
Class QDLSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet
-
- edu.uiuc.ncsa.qdl.variables.QDLSet
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable
,Collection
,Set
public class QDLSet extends HashSet
Created by Jeff Gaynor
on 4/6/22 at 4:02 PM- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List
convertToList()
QDLSet
difference(QDLSet arg)
void
fromJSON(net.sf.json.JSONArray array)
JSON does not have sets, so this is a bit klugy: It will take an array and stick the values into a set.String
inputForm()
QDLSet
intersection(QDLSet arg)
boolean
isEqualTo(QDLSet arg)
boolean
isSubsetOf(QDLSet arg)
static void
main(String[] args)
QDLSet
symmetricDifference(QDLSet arg)
net.sf.json.JSONArray
toJSON()
QDLStem
toStem()
String
toString()
QDLSet
union(QDLSet arg)
-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
QDLSet
public QDLSet()
-
QDLSet
public QDLSet(Set set)
Constructor to initialize a set from another non-QDL set. This adds every element of the argument, not just the argument.- Parameters:
set
-
-
-
Method Detail
-
fromJSON
public void fromJSON(net.sf.json.JSONArray array)
JSON does not have sets, so this is a bit klugy: It will take an array and stick the values into a set. This is lossy.- Parameters:
array
-
-
toJSON
public net.sf.json.JSONArray toJSON()
-
inputForm
public String inputForm()
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection
-
isSubsetOf
public boolean isSubsetOf(QDLSet arg)
-
isEqualTo
public boolean isEqualTo(QDLSet arg)
-
main
public static void main(String[] args)
-
convertToList
protected List convertToList()
-
toStem
public QDLStem toStem()
-
-