Class CompletionsWebService.CompletionValueObject

java.lang.Object
ubic.gemma.rest.CompletionsWebService.CompletionValueObject
Enclosing class:
CompletionsWebService

public static final class CompletionsWebService.CompletionValueObject extends Object
Wire shape for a single completion suggestion.

Mirrors the TSV value\tdescription lines emitted by gemma-cli complete so REST clients and CLI consumers share a common surface.

Author:
claude (PavlidisLab/Gemma#1611)
  • Constructor Details

    • CompletionValueObject

      public CompletionValueObject(String value, @Nullable String description)
      Creates a new CompletionValueObject instance.
      Parameters:
      value - The candidate completion value (id, short name, URI, etc. — varies by completion type).
      description - Human-readable label suitable for UI display alongside the value.
  • Method Details

    • getValue

      public String getValue()
      The candidate completion value (id, short name, URI, etc. — varies by completion type).
    • getDescription

      @Nullable public String getDescription()
      Human-readable label suitable for UI display alongside the value.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object