@Test public void testSetPassword() { GroupConfig groupConfig = new GroupConfig().setPassword("def"); assertTrue(groupConfig.getPassword().equals("def")); }
public GroupConfig setPassword(final String password) { if (password == null) { throw new NullPointerException("group password cannot be null"); } this.password = password; return this; }
GroupConfig implements DataSerializable { public GroupConfig setPassword(final String password) { if (password == null) { throw new NullPointerException("group password cannot be null"); } this.password = password; return this; } }
GroupConfig implements DataSerializable { public GroupConfig setPassword(final String password) { if (password == null) { throw new NullPointerException("group password cannot be null"); } this.password = password; return this; } GroupConfig();  GroupConfig(final String name);  GroupConfig(final String name, final String password); }
GroupConfig implements DataSerializable { public GroupConfig setPassword(final String password) { if (password == null) { throw new NullPointerException("group password cannot be null"); } this.password = password; return this; } GroupConfig();  GroupConfig(final String name);  GroupConfig(final String name, final String password); String getName(); GroupConfig setName(final String name); String getPassword(); GroupConfig setPassword(final String password); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); void writeData(DataOutput out); void readData(DataInput in); }
GroupConfig implements DataSerializable { public GroupConfig setPassword(final String password) { if (password == null) { throw new NullPointerException("group password cannot be null"); } this.password = password; return this; } GroupConfig();  GroupConfig(final String name);  GroupConfig(final String name, final String password); String getName(); GroupConfig setName(final String name); String getPassword(); GroupConfig setPassword(final String password); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); void writeData(DataOutput out); void readData(DataInput in); static final String DEFAULT_GROUP_PASSWORD; static final String DEFAULT_GROUP_NAME; }