/** * Clears the membership and adds all members of v This method will clear out all the old members * of this membership by invoking the {@code Clear} method. Then it will add all the all * members provided in the vector v * * @param v * - a vector containing all the members this membership will contain */ public Membership set(Collection<Address> v) { clear(); return add(v); }
/** * Clears the membership and adds all members of a given membership parameter. Prior to setting * membership this method will clear out all the old members of this membership by invoking the * {@code clear} method. * @param m a membership containing all the members this membership will contain */ public Membership set(Membership m) { clear(); if(m != null) add(m.getMembers()); return this; }
/** * Clears the membership and adds all members of v This method will clear out all the old members * of this membership by invoking the {@code Clear} method. Then it will add all the all * members provided in the vector v * * @param v * - a vector containing all the members this membership will contain */ public Membership set(Collection<Address> v) { clear(); return add(v); }
/** * Clear the membership and adds all members of v * This method will clear out all the old members of this membership by * invoking the <code>Clear</code> method. * Then it will add all the all members provided in the vector v * * @param v - a vector containing all the members this membership will contain */ public void set(Collection v) { clear(); if(v != null) { add(v); } }
/** * Clears the membership and adds all members of a given membership parameter. Prior to setting * membership this method will clear out all the old members of this membership by invoking the * {@code clear} method. * @param m a membership containing all the members this membership will contain */ public Membership set(Membership m) { clear(); if(m != null) add(m.getMembers()); return this; }
/** * Clear the membership and adds all members of v * This method will clear out all the old members of this membership by * invoking the <code>Clear</code> method. * Then it will add all the all members provided in the vector v * * @param m - a membership containing all the members this membership will contain */ public void set(Membership m) { clear(); if(m != null) { add(m.getMembers()); } }