Class Parameters

    • Constructor Detail

      • Parameters

        public Parameters()
    • Method Detail

      • contains

        public boolean contains​(Object key)
        Checks for existence of key in parameter set.
        Parameters:
        key - the key to check
        Returns:
        true if the key is present and false otherwise
      • contains

        public boolean contains​(Object key,
                                Object value)
        Checks for existence of a key and value in a parameter set.
        Parameters:
        key - the key to check
        value - the value to check
        Returns:
        true if the key and value are present and false otherwise
      • rename

        public void rename​(Object oldKey,
                           Object newKey)
        Renames a key in the parameter set.
        Parameters:
        oldKey - the key to rename
        newKey - the new name of the key
      • get

        public <S,​E> List<E> get​(Traverser.Admin<S> traverser,
                                       Object key,
                                       Supplier<E> defaultValue)
        Gets the list of values for a key, while resolving the values of any parameters that are Traversal objects.
      • get

        public <E> List<E> get​(Object key,
                               Supplier<E> defaultValue)
        Gets the value of a key and if that key isn't present returns the default value from the Supplier.
        Parameters:
        key - the key to retrieve
        defaultValue - the default value generator which if null will return an empty list
      • remove

        public Object remove​(Object key)
        Remove a key from the parameter set.
        Parameters:
        key - the key to remove
        Returns:
        the value of the removed key
      • getKeyValues

        public <S> Object[] getKeyValues​(Traverser.Admin<S> traverser,
                                         Object... exceptKeys)
        Gets the array of keys/values of the parameters while resolving parameter values that contain Traversal instances.
      • set

        public void set​(TraversalParent parent,
                        Object... keyValues)
        Set parameters given key/value pairs.
      • getReferencedLabels

        public Set<String> getReferencedLabels()
        Gets a list of all labels held in parameters that have a traversal as a value.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object