Module swim.api

Class ListDownlinkRecord

    • Constructor Detail

    • Method Detail

      • isArray

        public boolean isArray()
        Description copied from class: Record
        Returns true if this Record has only Value members–no Field members.
        Overrides:
        isArray in class Record
      • isObject

        public boolean isObject()
        Description copied from class: Record
        Returns true if this Record has only Field members–no Value members.
        Overrides:
        isObject in class Record
      • size

        public int size()
        Description copied from class: Record
        Returns the number of members contained in this Record.
        Specified by:
        size in interface Collection<Item>
        Specified by:
        size in interface List<Item>
        Specified by:
        size in class Record
      • containsKey

        public boolean containsKey​(Value key)
        Description copied from class: Record
        Returns true if this Record has a Field member with a key that is equal to the given key; otherwise returns false if this Record has no Field member with a key equal to the given key.
        Specified by:
        containsKey in interface MapOutlet<Value,​Value,​Record>
        Overrides:
        containsKey in class Record
      • containsKey

        public boolean containsKey​(String key)
        Description copied from class: Record
        Returns true if this Record has a Field member with a key that is equal to the given key; otherwise returns false if this Record has no Field member with a key equal to the given key. Equivalent to Record.containsKey(Value), but avoids boxing the key string into a Text value.
        Overrides:
        containsKey in class Record
      • get

        public Value get​(Value key)
        Description copied from class: Record
        Returns the value of the last Field member of this Record whose key is equal to the given key; returns Absent if this Record has no Field member with a key equal to the given key.
        Specified by:
        get in interface MapOutlet<Value,​Value,​Record>
        Overrides:
        get in class Record
      • get

        public Value get​(String key)
        Description copied from class: Record
        Returns the value of the last Field member of this Record whose key is equal to the given key; returns Absent if this Record has no Field member with a key equal to the given key. Equivalent to Record.get(Value), but avoids boxing the key string into a Text value.
        Overrides:
        get in class Record
      • getAttr

        public Value getAttr​(Text key)
        Description copied from class: Record
        Returns the value of the last Attr member of this Record whose key is equal to the given key; returns Absent if this Record has no Attr member with a key equal to the given key.
        Overrides:
        getAttr in class Record
      • getAttr

        public Value getAttr​(String key)
        Description copied from class: Record
        Returns the value of the last Attr member of this Record whose key is equal to the given key; returns Absent if this Record has no Attr member with a key equal to the given key. Equivalent to Record.getAttr(Text), but avoids boxing the key string into a Text value.
        Overrides:
        getAttr in class Record
      • getSlot

        public Value getSlot​(Value key)
        Description copied from class: Record
        Returns the value of the last Slot member of this Record whose key is equal to the given key; returns Absent if this Record has no Slot member with a key equal to the given key.
        Overrides:
        getSlot in class Record
      • getSlot

        public Value getSlot​(String key)
        Description copied from class: Record
        Returns the value of the last Slot member of this Record whose key is equal to the given key; returns Absent if this Record has no Slot member with a key equal to the given key. Equivalent to Record.getSlot(Value), but avoids boxing the key string into a Text value.
        Overrides:
        getSlot in class Record
      • get

        public Item get​(int index)
        Description copied from class: Record
        Returns the member of this Record at the given index, if the index is greater than or equal to zero, and less than the length of this Record.
        Specified by:
        get in interface List<Item>
        Specified by:
        get in class Record
      • getItem

        public Item getItem​(int index)
        Description copied from class: Record
        Returns the member of this Record at the given index, if the index is greater than or equal to zero, and less than the length of this Record; otherwise returns Absent if the index is out of bounds.
        Specified by:
        getItem in class Record
      • setItem

        public Item setItem​(int index,
                            Item newItem)
        Description copied from class: Record
        Replaces the member of this Record at the given index with a new item, returning the previous Item at the given index, if the index is greater than or equal to zero, and less than the length of this Record.
        Specified by:
        setItem in class Record
      • add

        public boolean add​(Item item)
        Description copied from interface: Builder
        Adds a single input value to this builder, returning true if the state of the builder changed.
        Specified by:
        add in interface Builder<Item,​Record>
        Specified by:
        add in interface Collection<Item>
        Specified by:
        add in interface List<Item>
        Specified by:
        add in class Record
      • add

        public void add​(int index,
                        Item item)
        Specified by:
        add in interface List<Item>
        Specified by:
        add in class Record