public boolean isUnused(){
  return (numEntries < 1) && waitingThreads.isEmpty();
}

public boolean isUnused ( ) { return ( numEntries < 1 ) && waitingThreads . isEmpty ( ) ; }
indicates whether this pool is unused . a pool is unused if there is neither an entry nor a waiting thread . all entries count , not only the free but also the allocated ones .
