public void toString(ToStringBuilder toStringBuilder) { { List<Account> theAccount; theAccount = this.getAccount(); toStringBuilder.append("account", theAccount); } { List<Overlaps> theOverlaps; theOverlaps = this.getOverlaps(); toStringBuilder.append("overlaps", theOverlaps); } }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getOverlaps()); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Accounts)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Accounts that = ((Accounts) object); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getOverlaps(), that.getOverlaps()); }
public Accounts union (Accounts g1, Accounts g2) { Accounts res=of.newAccounts(null,null); if (g1.getAccount()!=null) { res.getAccount().addAll(g1.getAccount()); } if (g2.getAccount()!=null) { res.getAccount().addAll(g2.getAccount()); } if (g1.getOverlaps()!=null) { res.getOverlaps().addAll(g1.getOverlaps()); } if (g2.getOverlaps()!=null) { res.getOverlaps().addAll(g2.getOverlaps()); } return res; }
public Accounts newAccounts(Collection<Account> accs, Collection<Overlaps> ovlps) { Accounts res=of.createAccounts(); if (accs!=null) { res.getAccount().addAll(accs); } if (ovlps!=null) { res.getOverlaps().addAll(ovlps); } return res; }
public void updateFromRdfGraph(OPMGraph graph) { IndexedOPMGraph igraph=new IndexedOPMGraph(oFactory,graph); List<Account> accs=graph.getAccounts().getAccount(); for (Account acc: accs) { if (acc.getId().equals("_null")) { accs.remove(acc); break; } } Collection<Account> green=Collections.singleton(igraph.getAccount("green")); Collection<Account> orange=Collections.singleton(igraph.getAccount("orange")); List<Account> green_orange=new LinkedList(); green_orange.addAll(green); green_orange.addAll(orange); Overlaps ov1=oFactory.newOverlaps(green_orange); graph.getAccounts().getOverlaps().add(ov1); }
aaccs.getAccount().addAll(accs); if (ops!=null) aaccs.getOverlaps().addAll(ops); res.setAccounts(aaccs);