View Javadoc
1   package org.oxerr.commons.ws.rs.bean;
2   
3   /**
4    * Marks as the object is patchable.
5    *
6    * @param <T> the argument type.
7    */
8   public interface Patchable<T> {
9   
10  	/**
11  	 * Patch this bean with the specified bean.
12  	 *
13  	 * @param <S> the type of patching object.
14  	 * @param patch the patching object.
15  	 * @return the patched object, used to chain calls.
16  	 */
17  	<S extends T> T patch(S patch);
18  
19  }