From dab75c9a81ed06b46e58869bbe10d022e7b16aff Mon Sep 17 00:00:00 2001 From: KexinFeng Date: Thu, 8 Jun 2023 08:33:50 -0700 Subject: [PATCH] format --- api/src/main/java/ai/djl/ndarray/NDList.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/src/main/java/ai/djl/ndarray/NDList.java b/api/src/main/java/ai/djl/ndarray/NDList.java index 35c4b0e43e0..e90b6ed78e7 100644 --- a/api/src/main/java/ai/djl/ndarray/NDList.java +++ b/api/src/main/java/ai/djl/ndarray/NDList.java @@ -184,6 +184,13 @@ public NDArray get(String name) { return null; } + /** {@inheritDoc} */ + @Override + public NDArray get(int index) { + index = index + (index < 0 ? size() : 0); + return super.get(index); + } + /** * Removes the first occurrence of the specified element from this NDList if it is present. * @@ -276,13 +283,6 @@ public NDList subNDList(int fromIndex) { return subList(fromIndex, size()); } - /** {@inheritDoc} */ - @Override - public NDArray get(int index) { - index = index + (index < 0 ? size() : 0); - return super.get(index); - } - /** {@inheritDoc} */ @Override public NDList subList(int fromIndex, int toIndex) {