2016-01-26 18:41:08 +00:00
|
|
|
package com.iluwatar.featuretoggle.user;
|
|
|
|
|
2016-01-28 21:14:40 +00:00
|
|
|
/**
|
|
|
|
* Used to demonstrate the purpose of the feature toggle. This class actually has nothing to do with the pattern.
|
|
|
|
*/
|
2016-01-26 18:41:08 +00:00
|
|
|
public class User {
|
2016-01-26 18:58:35 +00:00
|
|
|
|
2016-01-26 19:20:28 +00:00
|
|
|
private String name;
|
2016-01-26 18:58:35 +00:00
|
|
|
|
2016-01-28 21:14:40 +00:00
|
|
|
/**
|
|
|
|
* Default Constructor setting the username.
|
|
|
|
*
|
|
|
|
* @param name {@link String} to represent the name of the user.
|
|
|
|
*/
|
2016-01-26 19:20:28 +00:00
|
|
|
public User(String name) {
|
|
|
|
this.name = name;
|
|
|
|
}
|
2016-01-26 18:58:35 +00:00
|
|
|
|
2016-01-28 21:14:40 +00:00
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
* @return The {@link String} representation of the User, in this case just return the name of the user.
|
|
|
|
*/
|
2016-01-26 21:08:28 +00:00
|
|
|
@Override
|
|
|
|
public String toString() {
|
2016-01-26 19:20:28 +00:00
|
|
|
return name;
|
|
|
|
}
|
2016-01-26 18:41:08 +00:00
|
|
|
}
|