Package org.qdl_lang.variables
Class StemKeys
- java.lang.Object
-
- org.qdl_lang.variables.StemKeys
-
- All Implemented Interfaces:
Iterable
,Collection
,Set
public class StemKeys extends Object implements Set
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(Object o)
boolean
addAll(Collection c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection c)
Iterator<Long>
getListKeyIterator()
TreeSet<Long>
getListkeys()
TreeSet<String>
getStemKeys()
Iterator<String>
getStringKeyIterator()
StemKeys
intersection(StemKeys stemKeys)
Note that this takes the intersection of this set with the given set and returns a new set that is the intersection.boolean
isEmpty()
Iterator
iterator()
boolean
remove(Object o)
boolean
removeAll(Collection c)
boolean
retainAll(Collection c)
void
setListkeys(TreeSet<Long> listkeys)
void
setStemKeys(TreeSet<String> 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
-
size
public int size()
- Specified by:
size
in interfaceCollection
- Specified by:
size
in interfaceSet
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection
- Specified by:
isEmpty
in interfaceSet
-
contains
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection
- Specified by:
contains
in interfaceSet
-
iterator
public Iterator iterator()
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
toArray
public Object[] toArray(Object[] a)
- Specified by:
toArray
in interfaceCollection
- Specified by:
toArray
in interfaceSet
-
add
public boolean add(Object o)
- Specified by:
add
in interfaceCollection
- Specified by:
add
in interfaceSet
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection
- Specified by:
remove
in interfaceSet
-
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interfaceCollection
- Specified by:
containsAll
in interfaceSet
-
addAll
public boolean addAll(Collection c)
- Specified by:
addAll
in interfaceCollection
- Specified by:
addAll
in interfaceSet
-
retainAll
public boolean retainAll(Collection c)
- Specified by:
retainAll
in interfaceCollection
- Specified by:
retainAll
in interfaceSet
-
removeAll
public boolean removeAll(Collection c)
- Specified by:
removeAll
in interfaceCollection
- Specified by:
removeAll
in interfaceSet
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection
- Specified by:
clear
in interfaceSet
-
-