@Test public void container_first() { assertEquals(String.class, Resource.of("Test", URI.create("")).getViewType()); }
public static <R> Resource<R> of(R data, URI self) { return new Resource<>(data, self); }
Resource extends LinkContainer<Resource<T>> implements ViewSupplier { public static <R> Resource<R> of(R data, URI self) { return new Resource<>(data, self); } }
Resource extends LinkContainer<Resource<T>> implements ViewSupplier { public static <R> Resource<R> of(R data, URI self) { return new Resource<>(data, self); } @ConstructorProperties({"data", "_self"}) protected  Resource(T data, URI self); private  Resource(T data, URI self, Class<?> view); }
Resource extends LinkContainer<Resource<T>> implements ViewSupplier { public static <R> Resource<R> of(R data, URI self) { return new Resource<>(data, self); } @ConstructorProperties({"data", "_self"}) protected  Resource(T data, URI self); private  Resource(T data, URI self, Class<?> view); static Resource<R> of(R data, URI self); Resource<T> withView(Class<?> view); }
Resource extends LinkContainer<Resource<T>> implements ViewSupplier { public static <R> Resource<R> of(R data, URI self) { return new Resource<>(data, self); } @ConstructorProperties({"data", "_self"}) protected  Resource(T data, URI self); private  Resource(T data, URI self, Class<?> view); static Resource<R> of(R data, URI self); Resource<T> withView(Class<?> view);  }