mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
Finished the Flux example.
This commit is contained in:
@@ -2,6 +2,16 @@ package com.iluwatar;
|
||||
|
||||
public enum MenuItem {
|
||||
|
||||
HOME, PRODUCTS, COMPANY;
|
||||
HOME("Home"), PRODUCTS("Products"), COMPANY("Company");
|
||||
|
||||
private String title;
|
||||
|
||||
MenuItem(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return title;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user