public class Employee
extends Object
-
Field Summary 
Fields
int
It’s the unique id of each node; unique id of this employee
int
the importance value of this employee
the id of direct subordinates
-
Constructor Summary 
Constructors
-
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 id
It’s the unique id of each node; unique id of this employee
-
importance 
public int importance
the importance value of this employee
-
subordinates 
the id of direct subordinates
-
Constructor Details 
-
Employee 
public Employee(int id,
int importance,
List<Integer> subordinates)