Package org.apache.niolex.commons.seri.Proto

Examples of org.apache.niolex.commons.seri.Proto.Person.toByteArray()


    int i = 2345;
    Person p = Person.newBuilder().setEmail("kjdfjkdf" + i + "@xxx.com").setId(45 + i)
        .setName("Niolex [" + i + "]")
        .addPhone(PhoneNumber.newBuilder().setNumber("123122311" + i).setType(PhoneType.MOBILE).build())
        .build();
    byte[] ret = p.toByteArray();
    Set<String> set = new HashSet<String>();
    parseMulti(ret, new Type[] {set.getClass().getGenericSuperclass(), Person.class});
  }

  /**
 
View Full Code Here


    int i = 2345;
    Person p = Person.newBuilder().setEmail("kjdfjkdf" + i + "@xxx.com").setId(45 + i)
        .setName("Niolex [" + i + "]")
        .addPhone(PhoneNumber.newBuilder().setNumber("123122311" + i).setType(PhoneType.MOBILE).build())
        .build();
    byte[] ret = p.toByteArray();
    Set<String> set = new HashSet<String>();
    seriMulti(new Object[] {ret, set.getClass(), null});
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.