public boolean isWaiting(){
  return waiting;
}

public boolean isWaiting ( ) { return waiting ; }
indicates that object is waiting on a waitsomething call < p > specifically , the wait has progressed far enough that any change to the waited - on - condition will be detected
