Package org.qdl_lang.variables
Class StemKeys
- java.lang.Object
-
- org.qdl_lang.variables.StemKeys
-
public class StemKeys extends Object implements Set<QDLKey>
A set for looping through keys of a stem. This manages long indices and string keys. This will keep the keys in order and will process long keys first, then string keys.
N.B. it produces keys that are Objects.Created by Jeff Gaynor
on 5/12/22 at 6:44 AM
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
StemKeys.MyStemKeyIterator
-
Constructor Summary
Constructors Constructor Description StemKeys()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(QDLKey qdlKey)
boolean
addAll(Collection c)
This will let you add collection so POJOs though it is more expensivevoid
clear()
boolean
contains(Object o)
boolean
containsAll(Collection c)
TreeSet<LongValue>
getListkeys()
TreeSet<StringValue>
getStemKeys()
boolean
isEmpty()
Iterator<QDLKey>
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection c)
boolean
retainAll(Collection c)
void
setListkeys(TreeSet<LongValue> listkeys)
void
setStemKeys(TreeSet<StringValue> stemKeys)
int
size()
Object[]
toArray()
Object[]
toArray(Object[] a)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
-
-
-
Method Detail
-
add
public boolean add(QDLKey qdlKey)
-
getStemKeys
public TreeSet<StringValue> getStemKeys()
-
setStemKeys
public void setStemKeys(TreeSet<StringValue> stemKeys)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interfaceCollection<QDLKey>
- Specified by:
containsAll
in interfaceSet<QDLKey>
-
addAll
public boolean addAll(Collection c)
This will let you add collection so POJOs though it is more expensive
-
retainAll
public boolean retainAll(Collection c)
-
removeAll
public boolean removeAll(Collection c)
-
-