code: public boolean isTimeLocked() {
          if (getLockTime() == 0)
              return false;
          for (TransactionInput input : getInputs())
              if (input.hasSequence())
                  return true;
          return false;
      }
docs: <p>A transaction is time-locked if at least one of its inputs is non-final and it has a lock time. A transaction can
  also have a relative lock time which this method doesn't tell. Use {@link #hasRelativeLockTime()} to find out.</p>
  
  <p>To check if this transaction is final at a given height and time, see {@link Transaction#isFinal(int, long)}
  </p>