of

public static IdInTenant<I> of<I>(I id, boolean multitenant)

Creates a new instance of IdInTenant with the given identifier value and selected multitenancy mode.

Uses the current Tenant.


public static IdInTenant<I> of<I>(I id, TenantId tenant)

Creates a new instance of IdInTenant with the given identifier value and TenantId.