Class Components.Ignored<TYPE>

java.lang.Object
com.yahoo.vespa.indexinglanguage.expressions.Components<TYPE>
com.yahoo.vespa.indexinglanguage.expressions.Components.Ignored<TYPE>
Enclosing class:
Components<TYPE>

public static class Components.Ignored<TYPE> extends Components<TYPE>
A components instance for environments where no components are available: This will claim to have any component, but will only return a failing instance.
  • Constructor Details

  • Method Details

    • ids

      public Set<String> ids()
      Description copied from class: Components
      Returns all the known instance id's in this.
      Specified by:
      ids in class Components<TYPE>
    • isEmpty

      public boolean isEmpty()
      Description copied from class: Components
      Returns whether this is empty.
      Specified by:
      isEmpty in class Components<TYPE>
    • singleSelected

      public Optional<TYPE> singleSelected()
      Description copied from class: Components
      Returns the single component selected by this without supplying an id, or empty if an id is required.
      Specified by:
      singleSelected in class Components<TYPE>
    • contains

      public boolean contains(String componentId)
      Description copied from class: Components
      Returns whether this contains the given id.
      Specified by:
      contains in class Components<TYPE>
    • get

      public TYPE get(String componentId)
      Description copied from class: Components
      Returns the component with this id, or null if it does not exist.
      Specified by:
      get in class Components<TYPE>