All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentcs.components.plantoverview.PropertySuggestions Maven / Gradle / Ivy

// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.components.plantoverview;

import jakarta.annotation.Nonnull;
import java.util.HashSet;
import java.util.Set;

/**
 * Objects implementing this interface provide a set for suggested property keys and values each.
 */
public interface PropertySuggestions {

  /**
   * Returns suggested property keys.
   *
   * @return Suggested property keys.
   */
  @Nonnull
  Set getKeySuggestions();

  /**
   * Returns suggested property values.
   *
   * @return Suggested property values.
   */
  @Nonnull
  Set getValueSuggestions();

  /**
   * Returns suggested property values that are specified for the key.
   *
   * @param key A key suggestion for which value suggestions are requested.
   * @return A set of property value suggestions.
   */
  default Set getValueSuggestionsFor(String key) {
    return new HashSet<>();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy