title: How can we write a custom annotation to mask a argument in the constructor of a response pojo in maven java project
body: <p>I want to mask mobile number present in the constructor of response pojo that prepares the response for end user to see the output messages.Is custom annotation a good way to solve this problem or is there any other better way to resolve this ?</p>
  <p>For ex:</p>
  <pre><code> public ResponsePojo(String mobileNumber,
              int nextRequestInterval) {
          this.message = MessageFormat.format(message, mobileNumber);
          this.nextRequestInterval = nextRequestInterval;
      }
  </code></pre>
  <p>I want to do something like below :</p>
  <pre><code> public ResponsePojo(@MaskField String mobileNumber,
              int nextRequestInterval) {
          this.message = MessageFormat.format(message, mobileNumber);
          this.nextRequestInterval = nextRequestInterval;
      }
  </code></pre>
  <p>So that where ever i found some sensitive fields to mask, i can use my annotation @MaskField to mask some part of data in that field. Please suggest with sample code.</p>