Skip to content

Commit

Permalink
Adding documentation for async-log
Browse files Browse the repository at this point in the history
Autocommit Wed Jan 14 15:03:05 EST 2015
  • Loading branch information
mxro committed Jan 14, 2015
1 parent b86f0b9 commit fb1190b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/mxro/async/properties/PropertyOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* @author <a href="http://www.mxro.de">Max Rohde</a>
*
*/
public interface PropertyOperation {
public interface PropertyOperation<R> {

/**
* <p>
* Performs this operation on a {@link PropertyData} collection.
*
* @param data
*/
public void perform(PropertyData data);
public R perform(PropertyData data);

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
import de.mxro.async.properties.PropertyData;
import de.mxro.async.properties.PropertyOperation;


public abstract class PropertyOperationWithId implements PropertyOperation {
public abstract class PropertyOperationWithId<R> implements PropertyOperation<R> {

protected String id;

@Override
public abstract void perform(PropertyData data);
public abstract R perform(PropertyData data);

public PropertyOperationWithId setId(final String id) {
public PropertyOperationWithId<R> setId(final String id) {
this.id = id;
return this;
}
Expand Down

0 comments on commit fb1190b

Please sign in to comment.