Package org.qdl_lang.variables
Class SparseEntry
- java.lang.Object
-
- org.qdl_lang.variables.SparseEntry
-
- All Implemented Interfaces:
Serializable
,Comparable
public class SparseEntry extends Object implements Comparable, Serializable
Comparable entries for sparse entries. This contains the index and the actual entry itself. You can get this usingQDLList.first()
andQDLList.last()
.Created by Jeff Gaynor
on 2/20/20 at 8:35 AM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description BigInteger
bigIndex
Object
entry
long
index
-
Constructor Summary
Constructors Constructor Description SparseEntry(long index)
Useful for making index entries, i.e., checking is an element is at a certain index but not caring about the entry (which we never do, since we are modelling lists with these).SparseEntry(long index, Object entry)
SparseEntry(BigInteger index, Object entry)
-
-
-
Field Detail
-
index
public long index
-
entry
public Object entry
-
bigIndex
public BigInteger bigIndex
-
-
Constructor Detail
-
SparseEntry
public SparseEntry(long index)
Useful for making index entries, i.e., checking is an element is at a certain index but not caring about the entry (which we never do, since we are modelling lists with these).- Parameters:
index
-
-
SparseEntry
public SparseEntry(long index, Object entry)
-
SparseEntry
public SparseEntry(BigInteger index, Object entry)
-
-