@Test @SneakyThrows public void getters() { Layout<Properties> layout = Layout.forClass(Properties.class); List<Property<Properties>> properties = layout.getProperties(); Properties test = new Properties(true, "hello", 1); assertEquals(properties.get(0).get(test), "hello"); assertEquals((int)properties.get(1).get(test), 1); assertEquals((boolean)properties.get(2).get(test), true); }
public static <T> Layout<T> forClass(Class<T> klass) throws TypeHandler.TypeHandlerException, IntrospectionException, NoSuchAlgorithmException, IllegalAccessException { return new Layout<>(klass); }
Layout { public static <T> Layout<T> forClass(Class<T> klass) throws TypeHandler.TypeHandlerException, IntrospectionException, NoSuchAlgorithmException, IllegalAccessException { return new Layout<>(klass); } }
Layout { public static <T> Layout<T> forClass(Class<T> klass) throws TypeHandler.TypeHandlerException, IntrospectionException, NoSuchAlgorithmException, IllegalAccessException { return new Layout<>(klass); } @LayoutConstructor  Layout(String name, List<Property<T>> properties); private  Layout(Class<T> klass); }
Layout { public static <T> Layout<T> forClass(Class<T> klass) throws TypeHandler.TypeHandlerException, IntrospectionException, NoSuchAlgorithmException, IllegalAccessException { return new Layout<>(klass); } @LayoutConstructor  Layout(String name, List<Property<T>> properties); private  Layout(Class<T> klass); static Layout<T> forClass(Class<T> klass); Property<T> getProperty(String name); T instantiate(); T instantiate(Map<Property<T>, Object> properties); @Override boolean equals(Object obj); String toString(); }
Layout { public static <T> Layout<T> forClass(Class<T> klass) throws TypeHandler.TypeHandlerException, IntrospectionException, NoSuchAlgorithmException, IllegalAccessException { return new Layout<>(klass); } @LayoutConstructor  Layout(String name, List<Property<T>> properties); private  Layout(Class<T> klass); static Layout<T> forClass(Class<T> klass); Property<T> getProperty(String name); T instantiate(); T instantiate(Map<Property<T>, Object> properties); @Override boolean equals(Object obj); String toString(); static final String DIGEST_ALGORITHM; }