Class Parcel

  • All Implemented Interfaces:
    Callable, Function, 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
        content - the value to be wrapped