Class Parcel

  • All Implemented Interfaces:
    Callable, FunctionItem, GroundedValue, Item, Sequence

    public class Parcel
    extends SingleEntryMap
    A Parcel is a way of wrapping an arbitrary sequence as a single item. It is implemented as a single-entry map, the single key being the string "value", and the corresponding value being the wrapped value.
    • Field Detail

      • parcelKey

        public static final StringValue parcelKey
        The key of the single entry, that is the string "value"
      • TYPE

        public static RecordTest TYPE
        The type of the singleton map: a record type, effectively record(value: item()*)
    • Constructor Detail

      • Parcel

        public Parcel​(GroundedValue content)
        Create a parcel
        Parameters:
        content - the value to be wrapped