Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 11, 2024
1 parent fbc4047 commit 54431b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ public abstract static class AbstractBuilder<T, B extends AbstractBuilder<T, B>>
this.encodeTable = defaultEncodeTable;
}

/**
* Returns this instance typed as the subclass type {@code B}.
* <p>
* This is the same as the expression:
* </p>
* <pre>
* (B) this
* </pre>
*
* @return this instance typed as the subclass type {@code B}.
*/
@SuppressWarnings("unchecked")
B asThis() {
return (B) this;
Expand Down

0 comments on commit 54431b0

Please sign in to comment.