221222223224225226227
* 设置时间区间 * @param start 起始时间 * @param end 结束时间 */ public void setPeriod(Date start,Date end ){ this.period = new Period(start,end); }
62636465666768
this.from = from; this.to = to; this.type = type; Calendar calendar = Calendar.getInstance(); this.period = new Period(calendar.getTime(),null); }
113114115116117118119
public PartyRole(Party party, RoleType type) { super(); this.party = party; this.type = type; Calendar calendar = Calendar.getInstance(); this.period = new Period(calendar.getTime(),null); }
54555657585960
public PartyContact( ){} public PartyContact(Party party,ContactMechanism contact ){ this.party = party; this.contact = contact; this.period = new Period(new Date(),null); }