@Test public void detectCollectionType() throws NoSuchMethodException { final boolean isCollectionType = ResourceShapeFactory.isCollectionType( Dummy.class.getMethod("getValue").getReturnType()); assertThat(isCollectionType).isTrue(); }
static boolean isCollectionType(final Class<?> returnType) { return Collection.class.isAssignableFrom(returnType); }
ResourceShapeFactory { static boolean isCollectionType(final Class<?> returnType) { return Collection.class.isAssignableFrom(returnType); } }
ResourceShapeFactory { static boolean isCollectionType(final Class<?> returnType) { return Collection.class.isAssignableFrom(returnType); } protected  ResourceShapeFactory(); }
ResourceShapeFactory { static boolean isCollectionType(final Class<?> returnType) { return Collection.class.isAssignableFrom(returnType); } protected  ResourceShapeFactory(); static ResourceShape createResourceShape(final String baseURI,
													final String resourceShapesPath,
													final String resourceShapePath,
													final Class<?> resourceClass); }
ResourceShapeFactory { static boolean isCollectionType(final Class<?> returnType) { return Collection.class.isAssignableFrom(returnType); } protected  ResourceShapeFactory(); static ResourceShape createResourceShape(final String baseURI,
													final String resourceShapesPath,
													final String resourceShapePath,
													final Class<?> resourceClass);  }