Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-Nauwynck committed Mar 15, 2017
1 parent 9fb25d7 commit e1651ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ private void addFactoriesFor(DT adaptableType, Map<ItfId<?>,Map<String,IAdapterA
}

String alternativeName = factory.getAlternativeName();
for (ItfId<?> itfId : itfIds) {
for (ItfId<?> itfId : allItfIds) {
Map<String, IAdapterAlternativeFactory> a2f = to.get(itfId);
if (a2f == null) {
a2f = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ default public <T> boolean hasAdapter(Object adaptable, ItfId<T> interfaceId, St

public <T> boolean hasAdapter(Object adaptable, ItfId<T> interfaceId, Predicate<String> alternativePredicate);

default public <T> Map<String,T> getAdapters(Object adaptable, ItfId<T> interfaceId) {
return getAdapters(adaptable, interfaceId, x -> true);
}

public <T> Map<String,T> getAdapters(Object adaptable, ItfId<T> interfaceId, Predicate<String> alternativePredicate);

public Set<String> getAdapterAlternatives(DT adaptableDataType, ItfId<?> interfaceId);
Expand Down

0 comments on commit e1651ba

Please sign in to comment.