/** * Fulfills the old PojoOptions requirement for returning null if no * owner set. */ public Long getGroup() { long g = group(); if (g == -1) { return null; } return Long.valueOf(g); }
/** * Copies all known values from Parameters * * @param params */ public void copy(Parameters params) { if (params != null) { if (params.getLimit() != null) { batchSize = params.getLimit(); } if (params.owner() >= 0) { ownedBy = Details.create(); ownedBy.setOwner(new Experimenter(params.owner(), false)); } else if (params.group() >= 0) { ownedBy = Details.create(); ownedBy.setGroup(new ExperimenterGroup(params.group(), false)); } } }