Package convex.core.data.impl
Class ADerivedSet<T extends ACell,K extends ACell,V extends ACell>
java.lang.Object
convex.core.data.AObject
convex.core.data.ACell
convex.core.data.ACountable<T>
convex.core.data.ADataStructure<T>
convex.core.data.ACollection<T>
convex.core.data.ASet<T>
convex.core.data.impl.ADerivedSet<T,K,V>
- Type Parameters:
T
- Type of set elementK
- Type of Map keysV
- Type of Map values
- All Implemented Interfaces:
IAssociative<T,
,CVMBool> IValidated
,IWriteable
,Iterable<T>
,Collection<T>
,Set<T>
- Direct Known Subclasses:
KeySet
Abstract base class for non-canonical sets derived off maps
Useful for cases where we want a Set instance, but don't want to construct a whole new data structure
-
Field Summary
FieldsFields inherited from class convex.core.data.ADataStructure
count
Fields inherited from class convex.core.data.ACell
cachedRef, memorySize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this Cell is in a canonical representation.Methods inherited from class convex.core.data.ASet
assoc, conj, conjAll, contains, contains, containsAll, containsKey, disjAll, empty, exclude, excludeAll, get, get, get, getRefByHash, getTag, getType, getValueRef, include, includeAll, includeRef, intersectAll, isSubset, map, print, slice, slice, toVector
Methods inherited from class convex.core.data.ACollection
add, addAll, clear, containsAll, copyToArray, encode, iterator, remove, removeAll, retainAll, toArray, toArray, toCellArray
Methods inherited from class convex.core.data.ADataStructure
checkIndex, count, isDataValue, isEmpty, size, toCVMString
Methods inherited from class convex.core.data.ACountable
getElementRef
Methods inherited from class convex.core.data.ACell
attachMemorySize, attachRef, cachedEncoding, cachedHash, calcMemorySize, createEncoding, createRef, encodeRaw, equals, equals, genericEquals, getCanonical, getChildRefs, getEncoding, getEncodingLength, getHash, getMemorySize, getMemorySize, getRef, getRef, getRefCount, hashCode, isCVMValue, isEmbedded, toCanonical, toString, updateRefs, validate, validateCell
Methods inherited from class convex.core.data.AObject
attachEncoding, print, print
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface convex.core.data.IWriteable
estimatedEncodingSize
-
Field Details
-
map
-
-
Constructor Details
-
ADerivedSet
-
-
Method Details
-
isCanonical
public boolean isCanonical()Description copied from class:ACell
Returns true if this Cell is in a canonical representation. Non-canonical objects may be used on a temporary internal basis, they should be converted to canonical representations for general purpose use.- Specified by:
isCanonical
in classACell
- Returns:
- true if the object is in canonical format, false otherwise
-