Interface IBasicOption

All Known Subinterfaces:
IOption
All Known Implementing Classes:
BasicOption, Option

public interface IBasicOption
Basic option. It's just String name - Object value pair
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the option name
    Returns the option value
    default boolean
    is(String otherName)
     
    default boolean
    isAnyOf(String otherName, String... otherNames)
     
    default boolean
    isNoneOf(String otherName, String... otherNames)
     
  • Method Details

    • getName

      String getName()
      Returns the option name
      Returns:
      name of the option
    • getValue

      Object getValue()
      Returns the option value
      Returns:
      option value
    • is

      default boolean is(String otherName)
      Returns:
      True when this Option's name is equal to the given Option name.
    • isAnyOf

      default boolean isAnyOf(String otherName, String... otherNames)
      Returns:
      True when this Option's name is equal to at least one of the given Option names.
    • isNoneOf

      default boolean isNoneOf(String otherName, String... otherNames)
      Returns:
      True when this Option's name is not equal to any of the given names.