@Test public void testSetName() { GroupConfig groupConfig = new GroupConfig().setName("abc"); assertTrue(groupConfig.getName().equals("abc")); }
public GroupConfig setName(final String name) { if (name == null) { throw new NullPointerException("group name cannot be null"); } this.name = name; return this; }
GroupConfig implements DataSerializable { public GroupConfig setName(final String name) { if (name == null) { throw new NullPointerException("group name cannot be null"); } this.name = name; return this; } }
GroupConfig implements DataSerializable { public GroupConfig setName(final String name) { if (name == null) { throw new NullPointerException("group name cannot be null"); } this.name = name; return this; } GroupConfig();  GroupConfig(final String name);  GroupConfig(final String name, final String password); }
GroupConfig implements DataSerializable { public GroupConfig setName(final String name) { if (name == null) { throw new NullPointerException("group name cannot be null"); } this.name = name; 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 setName(final String name) { if (name == null) { throw new NullPointerException("group name cannot be null"); } this.name = name; 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; }