-
Method Summary
Gets you the handler that was linked with the
getIds().
Gets you the ids that linked themselves with their
getHandler().
Creates a new
IdMapping with the specified handler and ids.
-
Method Details
-
of
@Nonnull
public static <T> IdMapping<T> of(@Nonnull
T handler,
@Nonnull
String... ids)
Creates a new
IdMapping with the specified handler and ids.
- Type Parameters:
T - The IdMappings type.
- Parameters:
handler - The corresponding handler class.
ids - An String array of component ids.
- Returns:
- The
IdMapping instance.
-
getIds
@Nonnull
public String[] getIds()
Gets you the ids that linked themselves with their
getHandler().
- Returns:
- the ids as an
String array.
-
getHandler
@Nonnull
public T getHandler()
Gets you the handler that was linked with the
getIds().
- Returns:
- the handler instance.