public boolean contains(Node obj){
  final List<Node> l;
synchronized (this) {
    l=this.list;
  }
  return l.contains(obj);
}

public boolean contains ( Node obj ) { final List < Node > l ; synchronized ( this ) { l = this . list ; } return l . contains ( obj ) ; }
returns true if obj is present in the list otherwise false .
