-
- All Implemented Interfaces:
public final class Employee
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
id
private Integer
importance
private List<Integer>
subordinates
-
Method Summary
Modifier and Type Method Description final Integer
getId()
It's the unique id of each node; unique id of this employee final Unit
setId(Integer id)
It's the unique id of each node; unique id of this employee final Integer
getImportance()
the importance value of this employee final Unit
setImportance(Integer importance)
the importance value of this employee final List<Integer>
getSubordinates()
the id of direct subordinates final Unit
setSubordinates(List<Integer> subordinates)
the id of direct subordinates -
-
Method Detail
-
getImportance
final Integer getImportance()
the importance value of this employee
-
setImportance
final Unit setImportance(Integer importance)
the importance value of this employee
-
getSubordinates
final List<Integer> getSubordinates()
the id of direct subordinates
-
setSubordinates
final Unit setSubordinates(List<Integer> subordinates)
the id of direct subordinates
-
-
-
-