Skip to content

Commit

Permalink
Minor update to clarify function names in LDPathTransform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Woods committed Oct 2, 2013
1 parent 753ae51 commit 20d17cf
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -152,22 +152,22 @@ private LDPath<RDFNode> getLdpathResource(final Dataset dataset) throws Reposito
transformLdpathOutputToSomethingSerializable(Map<String, Collection<?>> collectionMap) {

return Maps.transformValues(collectionMap,
WILDCARD_COLLECTION_TO_STRING_COLLECTION);
WILDCARD_COLLECTION_TO_OBJECT_COLLECTION);
}

private static final Function<Collection<?>,Collection<Object>>
WILDCARD_COLLECTION_TO_STRING_COLLECTION =
WILDCARD_COLLECTION_TO_OBJECT_COLLECTION =
new Function<Collection<?>, Collection<Object>>() {

@Override
public Collection<Object> apply(Collection<?> input) {
return Collections2.transform(input,
ANYTHING_TO_STRING_FUNCTION);
ANYTHING_TO_OBJECT_FUNCTION);
}
};


private static final Function<Object,Object> ANYTHING_TO_STRING_FUNCTION =
private static final Function<Object,Object> ANYTHING_TO_OBJECT_FUNCTION =
new Function<Object, Object>() {
@Override
public Object apply(Object input) {
Expand Down

0 comments on commit 20d17cf

Please sign in to comment.