Resolves checkstyle errors for remaining m (#1090)
* Reduces checkstyle errors in marker * Reduces checkstyle errors in master-worker-pattern * Reduces checkstyle errors in mediator * Reduces checkstyle errors in memento * Reduces checkstyle errors in model-view-controller * Reduces checkstyle errors in model-view-presenter * Reduces checkstyle errors in module * Reduces checkstyle errors in monad * Reduces checkstyle errors in monostate * Reduces checkstyle errors in multiton * Reduces checkstyle errors in mute-idiom * Reduces checkstyle errors in mutex
This commit is contained in:
committed by
Ilkka Seppälä
parent
3ccc9baa1a
commit
1fdc650545
@ -24,27 +24,25 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* Model-View-Controller is a pattern for implementing user interfaces. It divides the application
|
||||
* into three interconnected parts namely the model, the view and the controller.
|
||||
* <p>
|
||||
* The central component of MVC, the model, captures the behavior of the application in terms of its
|
||||
* problem domain, independent of the user interface. The model directly manages the data, logic and
|
||||
* rules of the application. A view can be any output representation of information, such as a chart
|
||||
* or a diagram The third part, the controller, accepts input and converts it to commands for the
|
||||
* model or view.
|
||||
* <p>
|
||||
* In this example we have a giant ({@link GiantModel}) with statuses for health, fatigue and
|
||||
* nourishment. {@link GiantView} can display the giant with its current status.
|
||||
* {@link GiantController} receives input affecting the model and delegates redrawing the giant to
|
||||
* the view.
|
||||
*
|
||||
* <p>The central component of MVC, the model, captures the behavior of the application in terms of
|
||||
* its problem domain, independent of the user interface. The model directly manages the data, logic
|
||||
* and rules of the application. A view can be any output representation of information, such as a
|
||||
* chart or a diagram The third part, the controller, accepts input and converts it to commands for
|
||||
* the model or view.
|
||||
*
|
||||
* <p>In this example we have a giant ({@link GiantModel}) with statuses for health, fatigue and
|
||||
* nourishment. {@link GiantView} can display the giant with its current status. {@link
|
||||
* GiantController} receives input affecting the model and delegates redrawing the giant to the
|
||||
* view.
|
||||
*/
|
||||
public class App {
|
||||
|
||||
/**
|
||||
* Program entry point
|
||||
*
|
||||
* Program entry point.
|
||||
*
|
||||
* @param args command line args
|
||||
*/
|
||||
public static void main(String[] args) {
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* Fatigue enumeration
|
||||
*
|
||||
* Fatigue enumeration.
|
||||
*/
|
||||
public enum Fatigue {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* GiantController can update the giant data and redraw it using the view.
|
||||
*
|
||||
*/
|
||||
public class GiantController {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* GiantModel contains the giant data
|
||||
*
|
||||
* GiantModel contains the giant data.
|
||||
*/
|
||||
public class GiantModel {
|
||||
|
||||
|
@ -27,9 +27,7 @@ import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
*
|
||||
* GiantView displays the giant
|
||||
*
|
||||
* GiantView displays the giant.
|
||||
*/
|
||||
public class GiantView {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* Health enumeration
|
||||
*
|
||||
* Health enumeration.
|
||||
*/
|
||||
public enum Health {
|
||||
|
||||
|
@ -24,9 +24,7 @@
|
||||
package com.iluwatar.model.view.controller;
|
||||
|
||||
/**
|
||||
*
|
||||
* Nourishment enumeration
|
||||
*
|
||||
* Nourishment enumeration.
|
||||
*/
|
||||
public enum Nourishment {
|
||||
|
||||
|
Reference in New Issue
Block a user