Package com_github_leetcode
Class Employee
-
- All Implemented Interfaces:
public final class Employee
-
-
Field Summary
Fields Modifier and Type Field Description private Integeridprivate Integerimportanceprivate List<Integer>subordinates
-
Method Summary
Modifier and Type Method Description final IntegergetId()It's the unique id of each node; unique id of this employee final UnitsetId(Integer id)It's the unique id of each node; unique id of this employee final IntegergetImportance()the importance value of this employee final UnitsetImportance(Integer importance)the importance value of this employee final List<Integer>getSubordinates()the id of direct subordinates final UnitsetSubordinates(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
-
-
-
-