Interface PsyIndexed<K extends PsyObject,​V extends PsyObject>

    • Method Detail

      • psyKnown

        PsyBoolean psyKnown​(K oKey)
        Returns a Ψ-boolean indicating whether given key or index exists in this object.
        Parameters:
        oKey - a key or an index.
        Returns:
        a result.
      • psyGet

        V psyGet​(K oKey)
          throws PsyException
        Returns the element with given key or index.
        Parameters:
        oKey - a key or an index.
        Returns:
        an element.
        Throws:
        PsyException - when index is out of range.
      • psyPut

        void psyPut​(K oKey,
                    V oValue)
             throws PsyException
        Stores an element with given key or index. In PsyArraylike containers replaces existing element. In PsyDictlike containers replaces an old or creates a new element associated with specified key.
        Parameters:
        oKey - a key or an index.
        oValue - an element to be stored.
        Throws:
        PsyException - when key is absent or index is out of range.
      • psyDelete

        void psyDelete​(K oKey)
                throws PsyException
        Deletes a key or index and a value associated with it from this object.
        Parameters:
        oKey - a key or an index.
        Throws:
        PsyException - when key is absent or index is out of range.
      • psySlice

        PsyIndexed<K,​V> psySlice​(PsyIterable<K> oKeys)
                                throws PsyException
        Returns a container of the same type as this object consisting of keys or indices from given Ψ-iterable and of associated values.
        Parameters:
        oKeys - an enumeration of keys.
        Returns:
        a container.
        Throws:
        PsyException - when key is absent or index is out of range.
      • psyKeys

        PsyIterable<K> psyKeys()
        Returns a Ψ-iterable enumeration of all the keys of this object.
        Returns:
        an enumeration of keys.
      • psyValues

        PsyIterable<V> psyValues()
        Returns a Ψ-iterable enumeration of all the values of this object.
        Returns:
        an enumeration of values.
      • psyEntries

        PsyIterable<PsyObject> psyEntries()
        Returns a Ψ-iterable enumeration of all the keys and values of this object.
        Returns:
        an enumeration of entries.