com.github.jknack.extend
Interface Function<In,Out>

Type Parameters:
In - The input object.
Out - The derived value.

public interface Function<In,Out>

Used for derived properties using the Extend methods.

Usage:

 import static com.github.jknack.extend.Extend.*;

 ...

 MyObject extended =
   extend(object,
     $("propertyA", new Function() {
       public Integer apply(MyObject object) {
         return ...;
       }
     })
   );

 

Since:
0.1.0
Author:
edgar.espina

Method Summary
 Out apply(In value)
           Usage:
 

Method Detail

apply

Out apply(In value)

Usage:

 import static com.github.jknack.extend.Extend.*;

 ...

 MyObject extended =
   extend(object,
     $("propertyA", new Function() {
       public Integer apply(MyObject object) {
         return ...;
       }
     })
   );

 

Parameters:
value - The input object.
Returns:
A derived value.


Copyright © 2013. All Rights Reserved.