#354 Start Adding Java docs

This commit is contained in:
Joseph McCarthy
2016-01-28 21:14:40 +00:00
parent 77e14f0069
commit 98326a1e5e
2 changed files with 24 additions and 3 deletions

View File

@@ -1,13 +1,25 @@
package com.iluwatar.featuretoggle.user;
/**
* Used to demonstrate the purpose of the feature toggle. This class actually has nothing to do with the pattern.
*/
public class User {
private String name;
/**
* Default Constructor setting the username.
*
* @param name {@link String} to represent the name of the user.
*/
public User(String name) {
this.name = name;
}
/**
* {@inheritDoc}
* @return The {@link String} representation of the User, in this case just return the name of the user.
*/
@Override
public String toString() {
return name;