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