Package com.netflix.zeno.examples.pojos

Examples of com.netflix.zeno.examples.pojos.C


        List<B> bList = new ArrayList<B>();
        bList.add(b1);
        bList.add(b2);

        C c = new C(Long.MAX_VALUE, new byte[] { 1, 2, 3, 4, 5 });

        A a = new A(bList, c, 1);

        return a;
    }
View Full Code Here


        B b2 = new B(25, "Plus Twenty Five!")/// sum = 37
        B b3 = new B(10, "Plus Ten!")/// sum = 47

        List<B> bList = Arrays.asList(b1, b2, b3);

        C c = new C(20, new byte[] { 100, 101, 102 })/// longs don't count.  Still sum = 47.

        A a = new A(bList, c, 100); /// sum = 147

        int actualSum = sumFramework.getSum("A", a);
View Full Code Here

    }

    @Override
    protected A doDeserialize(NFDeserializationRecord rec) {
        List<B> bList = deserializeObject(rec, "blist");
        C c = deserializeObject(rec, "c");
        int intValue = deserializeInteger(rec, "intVal");

        return new A(bList, c, intValue);
    }
View Full Code Here

    @Override
    protected C doDeserialize(NFDeserializationRecord rec) {
        long cLong = deserializeLong(rec, "cLong");
        byte cBytes[] = deserializeBytes(rec, "cBytes");

        return new C(cLong, cBytes);
    }
View Full Code Here

TOP

Related Classes of com.netflix.zeno.examples.pojos.C

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.