com.netflix.astyanax.model.DynamicComposite Maven / Gradle / Ivy
package com.netflix.astyanax.model;
import java.nio.ByteBuffer;
import java.util.List;
public class DynamicComposite extends AbstractComposite {
public DynamicComposite() {
super(true);
}
public DynamicComposite(Object... o) {
super(true, o);
}
public DynamicComposite(List> l) {
super(true, l);
}
public static DynamicComposite fromByteBuffer(ByteBuffer byteBuffer) {
DynamicComposite composite = new DynamicComposite();
composite.deserialize(byteBuffer);
return composite;
}
public static ByteBuffer toByteBuffer(Object... o) {
DynamicComposite composite = new DynamicComposite(o);
return composite.serialize();
}
public static ByteBuffer toByteBuffer(List> l) {
DynamicComposite composite = new DynamicComposite(l);
return composite.serialize();
}
}