All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.astyanax.model.DynamicComposite Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy