com.github.paganini2008.devtools.beans.streaming.View Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devtools-beans-streaming Show documentation
Show all versions of devtools-beans-streaming Show documentation
a useful java tools based on java collection stream framework
package com.github.paganini2008.devtools.beans.streaming;
import com.github.paganini2008.devtools.collection.Tuple;
/**
*
* View
*
* @author Fred Feng
*
*
* @version 1.0
*/
public abstract class View implements Transformer, Tuple> {
public Tuple transfer(Group group) {
Tuple tuple = Tuple.newTuple();
tuple.append(group.getAttributes());
setAttributes(tuple, group);
return tuple;
}
protected void setAttributes(Tuple tuple, Group group) {
}
}