New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated DynamicComposite to override super's addComponent methods #597

Merged
merged 1 commit into from Mar 14, 2013
Jump to file or symbol
Failed to load files and symbols.
+42 −0
Diff settings

Always

Just for now

@@ -2,6 +2,7 @@
import java.nio.ByteBuffer;
import java.util.List;
import me.prettyprint.hector.api.Serializer;
public class DynamicComposite extends AbstractComposite {
@@ -35,5 +36,46 @@ public static ByteBuffer toByteBuffer(Object... o) {
public static ByteBuffer toByteBuffer(List<?> l) {
DynamicComposite composite = new DynamicComposite(l);
return composite.serialize();
}
@Override
public <T> DynamicComposite addComponent(int index, T element, ComponentEquality equality) {
super.addComponent(index, element, equality);
return this;
}
@Override
public <T> DynamicComposite addComponent(T value, Serializer<T> s) {
super.addComponent(value, s);
return this;
}
@Override
public <T> DynamicComposite addComponent(T value, Serializer<T> s,
String comparator) {
super.addComponent(value, s, comparator);
return this;
}
@Override
public <T> DynamicComposite addComponent(T value, Serializer<T> s,
String comparator, ComponentEquality equality) {
super.addComponent(value, s, comparator, equality);
return this;
}
@Override
public <T> DynamicComposite addComponent(int index, T value,
Serializer<T> s, String comparator, ComponentEquality equality) {
super.addComponent(index, value, s, comparator, equality);
return this;
}
}
ProTip! Use n and p to navigate between commits in a pull request.