Interface Aliases

All Known Implementing Classes:
EmptyAliases, PersistentAliasesTable, ResolvedAliases

public interface Aliases
Aliases table. Provides API for managing and obtaining aliases.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String alias)
    Returns value from aliases table that corresponds to provided alias.
    Returns iterator for all entries of {@link this} aliases table.
    Key of {@link this} aliases table.
    boolean
    put(String alias, String value, boolean replace)
    Associates provided alias with provided alias in aliases table.
    boolean
    remove(String alias)
    Removes value for specified alias from aliases table.
  • Method Details

    • getKey

      String getKey()
      Key of {@link this} aliases table.
    • get

      String get(String alias)
      Returns value from aliases table that corresponds to provided alias.
      Parameters:
      alias - alias of the value to obtain
      Returns:
      value from aliases table that corresponds to provided alias
    • put

      boolean put(String alias, String value, boolean replace)
      Associates provided alias with provided alias in aliases table.
      Parameters:
      alias - alias of the value to associate with
      value - value that will be associated with provided alias
      replace - whether existing value for the same alias should be replaced
      Returns:
      true if provided alias was associated with the provided value in aliases table
    • remove

      boolean remove(String alias)
      Removes value for specified alias from aliases table.
      Parameters:
      alias - alias of the value to remove
      Returns:
      true if the value associated with provided alias was removed from the aliases table
    • getAllAliases

      Iterator<Map.Entry<String,String>> getAllAliases()
      Returns iterator for all entries of {@link this} aliases table.