下面列出了com.fasterxml.jackson.databind.type.TypeFactory#constructCollectionLikeType ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public JavaType getOutputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(LinkedList.class, JsonAttribute.class);
}
@Override
public JavaType getOutputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(LinkedList.class, JsonField.class);
}
@Override
public JavaType getOutputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(LinkedList.class, JsonMessage.class);
}
@Override
public JavaType getInputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(List.class, JsonAttribute.class);
}
@Override
public JavaType getInputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(List.class, JsonField.class);
}
@Override
public JavaType getInputType(TypeFactory typeFactory) {
return typeFactory.constructCollectionLikeType(List.class, JsonMessage.class);
}