You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2024/10/11 15:41:15 UTC
(commons-codec) branch master updated: Javadoc
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push:
new 54431b0a Javadoc
54431b0a is described below
commit 54431b0a0d5dc4d5032ebc0409008f8f88420eac
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Oct 11 11:41:11 2024 -0400
Javadoc
---
src/main/java/org/apache/commons/codec/binary/BaseNCodec.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java b/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
index e4e3f6ae..4889c960 100644
--- a/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
+++ b/src/main/java/org/apache/commons/codec/binary/BaseNCodec.java
@@ -74,6 +74,17 @@ public abstract class BaseNCodec implements BinaryEncoder, BinaryDecoder {
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;