Package sonia.scm.search
Class Id<T>
java.lang.Object
sonia.scm.search.Id<T>
Describes the id of an indexed object.
- Since:
- 2.21.0
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new combined id by adding a new type and value.and(Class<?> type, ModelObject idObject) Creates a new combined id by adding a new type and value.and(Repository repository) Creates a new combined id by adding the given repository.static <T> Id<T>Creates a new id.static <T> Id<T>of(Class<T> mainType, ModelObject mainIdObject) Creates a new id.
-
Method Details
-
and
Creates a new combined id by adding a new type and value.- Parameters:
type- other typeid- other id- Since:
- 2.23.0
-
and
Creates a new combined id by adding a new type and value.- Parameters:
type- other typeidObject- object which holds id- Since:
- 2.23.0
-
and
Creates a new combined id by adding the given repository.- Parameters:
repository- repository to add- Since:
- 2.23.0
-
of
Creates a new id.- Parameters:
mainType- main type of the idmainId- main id of the id
-
of
Creates a new id.- Parameters:
mainType- main type of the idmainIdObject- object which holds the main id
-