Package com_github_leetcode
Class Employee
java.lang.Object
com_github_leetcode.Employee
public class Employee
extends java.lang.Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
It’s the unique id of each node; unique id of this employeeint
the importance value of this employeejava.util.List
<java.lang.Integer> the id of direct subordinates -
Constructor Summary
ConstructorsConstructorDescriptionEmployee
(int id, int importance, java.util.List<java.lang.Integer> subordinates) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
id
public int idIt’s the unique id of each node; unique id of this employee -
importance
public int importancethe importance value of this employee -
subordinates
public java.util.List<java.lang.Integer> subordinatesthe id of direct subordinates
-
-
Constructor Details
-
Employee
public Employee(int id, int importance, java.util.List<java.lang.Integer> subordinates)
-