Sha256: 4e7704c32e59c8bf913bd4c6d4cc638ea36b6994144ca36a5322200b7569073f
Contents?: true
Size: 1.07 KB
Versions: 9
Compression:
Stored size: 1.07 KB
Contents
// generated by kwalify from address_book.schema.yaml import java.util.*; /** * address-book class */ public class AddressBook { private List _groups; private List _people; public AddressBook() {} public AddressBook(Map map) { List seq; Object obj; if ((seq = (List)map.get("groups")) != null) { for (int i = 0; i < seq.size(); i++) { if ((obj = seq.get(i)) instanceof Map) { seq.set(i, new Group((Map)obj)); } } } _groups = seq; if ((seq = (List)map.get("people")) != null) { for (int i = 0; i < seq.size(); i++) { if ((obj = seq.get(i)) instanceof Map) { seq.set(i, new Person((Map)obj)); } } } _people = seq; } public List getGroups() { return _groups; } public void setGroups(List groups_) { _groups = groups_; } public List getPeople() { return _people; } public void setPeople(List people_) { _people = people_; } }
Version data entries
9 entries across 7 versions & 4 rubygems