public int indexOf(Object obj){
  final List<Node> l;
synchronized (this) {
    l=this.list;
  }
  return l.indexOf(obj);
}

public int indexOf ( Object obj ) { final List < Node > l ; synchronized ( this ) { l = this . list ; } return l . indexOf ( obj ) ; }
returns the index of object if present , else - 1 .
