Class Hit

java.lang.Object
sonia.scm.search.Hit

@Beta public class Hit extends Object
Represents an object which matched the search query.
Since:
2.21.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Base class of hit field types.
    static class 
    A field which consists of fragments that contain a match of the search query.
    static class 
    A field holding a complete value.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Hit()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns optional id of a repository which associated with the hit or empty if the hit is not associated with any repository.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Hit

      public Hit()
  • Method Details

    • getRepositoryId

      public Optional<String> getRepositoryId()
      Returns optional id of a repository which associated with the hit or empty if the hit is not associated with any repository.
      Returns:
      optional repository id
      Since:
      2.23.0