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
countFields inherited from class convex.core.data.ACell
cachedRef, memorySize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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, toVectorMethods inherited from class convex.core.data.ACollection
add, addAll, clear, containsAll, copyToArray, encode, iterator, remove, removeAll, retainAll, toArray, toArray, toCellArrayMethods inherited from class convex.core.data.ADataStructure
checkIndex, count, isDataValue, isEmpty, size, toCVMStringMethods inherited from class convex.core.data.ACountable
getElementRefMethods 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, validateCellMethods inherited from class convex.core.data.AObject
attachEncoding, print, printMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface convex.core.data.IWriteable
estimatedEncodingSize
-
Field Details
-
map
-
-
Constructor Details
-
ADerivedSet
-
-
Method Details
-
isCanonical
public boolean isCanonical()Description copied from class:ACellReturns 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:
isCanonicalin classACell- Returns:
- true if the object is in canonical format, false otherwise
-