T
- the model's typeS
- the model identifier's type (e.g., Long
, String
,
etc.)@ProviderType
public interface RelatedModel<T,S>
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends Identifier<S>> |
getIdentifierClass()
Returns the related resource identifier's class.
|
java.util.function.Function<T,S> |
getIdentifierFunction()
Deprecated.
As of 1.1.1, replaced by
getModelToIdentifierFunction() |
java.lang.String |
getIdentifierName()
Returns the identifier's name.
|
java.lang.String |
getKey()
Returns the relation's key.
|
java.util.function.Function<T,S> |
getModelToIdentifierFunction()
Returns the function you can use to retrieve the related resource's
identifier.
|
java.lang.Class<? extends Identifier<S>> getIdentifierClass()
@Deprecated java.util.function.Function<T,S> getIdentifierFunction()
getModelToIdentifierFunction()
java.lang.String getIdentifierName()
java.lang.String getKey()