public class VncTinyVector extends VncVector
Most of the vectors in a typical Venice application have less than 5 items. This optimized implementation for an immutable tiny vector is much faster than a VAVR persistent vector that can hold an arbitrary number of items.
| Modifier and Type | Field and Description |
|---|---|
static VncKeyword |
TYPE |
| Constructor and Description |
|---|
VncTinyVector() |
VncTinyVector(VncVal meta) |
VncTinyVector(VncVal first,
VncVal meta) |
VncTinyVector(VncVal first,
VncVal second,
VncVal meta) |
VncTinyVector(VncVal first,
VncVal second,
VncVal third,
VncVal meta) |
VncTinyVector(VncVal first,
VncVal second,
VncVal third,
VncVal fourth,
VncVal meta) |
streamisVncCollectiongetMeta, getMetaVal, getMetaVal, getWrappingTypeDef, isPrivate, isVncList, isWrapped, wrappublic static final VncKeyword TYPE
public VncTinyVector()
public VncTinyVector(VncVal meta)
public static VncVector range(int from, int toExclusive)
public VncVal apply(VncList args)
apply in interface IVncFunctionapply in class VncVectorpublic VncVector emptyWithMeta()
emptyWithMeta in class VncVectorpublic VncVector withVariadicValues(VncVal... replaceVals)
withVariadicValues in class VncVectorpublic VncVector withValues(java.util.List<? extends VncVal> replaceVals)
withValues in class VncVectorpublic VncVector withValues(java.util.List<? extends VncVal> replaceVals, VncVal meta)
withValues in class VncVectorpublic VncKeyword getType()
public VncKeyword getSupertype()
getSupertype in class VncVectorpublic java.util.List<VncKeyword> getAllSupertypes()
getAllSupertypes in class VncVectorpublic void forEach(java.util.function.Consumer<? super VncVal> action)
public VncVal nthOrDefault(int idx, VncVal defaultVal)
nthOrDefault in class VncVectorpublic VncVal second()
second in class VncSequencepublic VncVal third()
third in class VncSequencepublic VncVal fourth()
fourth in class VncSequencepublic VncVector toVncVector()
toVncVector in class VncVectorpublic VncVector addAtStart(VncVal val)
addAtStart in class VncVectorpublic VncVector addAllAtStart(VncSequence list)
addAllAtStart in class VncVectorpublic VncVector addAllAtEnd(VncSequence list)
addAllAtEnd in class VncVectorpublic java.lang.Object convertToJavaObject()
convertToJavaObject in class VncVectorpublic int compareTo(VncVal o)
public java.lang.String toString(boolean print_readably)
public static VncTinyVector empty()