Files
java-design-patterns/feature-toggle/src/main/java/com/iluwatar/featuretoggle/user/User.java

28 lines
598 B
Java
Raw Normal View History

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.
*/
public class User {
2016-01-26 19:20:28 +00:00
private String name;
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-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.
*/
@Override
public String toString() {
2016-01-26 19:20:28 +00:00
return name;
}
}