Class Id<T>

java.lang.Object
sonia.scm.search.Id<T>

@Beta public final class Id<T> extends Object
Describes the id of an indexed object.
Since:
2.21.0
  • Method Details

    • and

      public Id<T> and(Class<?> type, String id)
      Creates a new combined id by adding a new type and value.
      Parameters:
      type - other type
      id - other id
      Since:
      2.23.0
    • and

      public Id<T> and(Class<?> type, ModelObject idObject)
      Creates a new combined id by adding a new type and value.
      Parameters:
      type - other type
      idObject - object which holds id
      Since:
      2.23.0
    • and

      public Id<T> and(Repository repository)
      Creates a new combined id by adding the given repository.
      Parameters:
      repository - repository to add
      Since:
      2.23.0
    • of

      public static <T> Id<T> of(Class<T> mainType, String mainId)
      Creates a new id.
      Parameters:
      mainType - main type of the id
      mainId - main id of the id
    • of

      public static <T> Id<T> of(Class<T> mainType, ModelObject mainIdObject)
      Creates a new id.
      Parameters:
      mainType - main type of the id
      mainIdObject - object which holds the main id