Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated DynamicComposite to override super's addComponent methods

  • Loading branch information...
commit e3948c56ee63c05944003ab36b8b25b5d5f55ced 1 parent 925908e
Shane Perry authored
View
42 core/src/main/java/me/prettyprint/hector/api/beans/DynamicComposite.java
@@ -2,6 +2,7 @@
import java.nio.ByteBuffer;
import java.util.List;
+import me.prettyprint.hector.api.Serializer;
public class DynamicComposite extends AbstractComposite {
@@ -36,4 +37,45 @@ 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;
+
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.