You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mnemonic.apache.org by jo...@apache.org on 2018/01/31 04:17:25 UTC
mnemonic git commit: MNEMONIC-457: Add getSize to DurableArray
Repository: mnemonic
Updated Branches:
refs/heads/master 2574c5592 -> eab06091f
MNEMONIC-457: Add getSize to DurableArray
Project: http://git-wip-us.apache.org/repos/asf/mnemonic/repo
Commit: http://git-wip-us.apache.org/repos/asf/mnemonic/commit/eab06091
Tree: http://git-wip-us.apache.org/repos/asf/mnemonic/tree/eab06091
Diff: http://git-wip-us.apache.org/repos/asf/mnemonic/diff/eab06091
Branch: refs/heads/master
Commit: eab06091ff25fbd6ddc5c711bf58e8abdfce3333
Parents: 2574c55
Author: taojie <ta...@cmss.chinamobile.com>
Authored: Mon Jan 29 18:27:03 2018 +0800
Committer: taojie <ta...@cmss.chinamobile.com>
Committed: Wed Jan 31 09:26:20 2018 +0800
----------------------------------------------------------------------
.../java/org/apache/mnemonic/collections/DurableArray.java | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mnemonic/blob/eab06091/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableArray.java
----------------------------------------------------------------------
diff --git a/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableArray.java b/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableArray.java
index fb26a90..0d2fbff 100644
--- a/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableArray.java
+++ b/mnemonic-collections/src/main/java/org/apache/mnemonic/collections/DurableArray.java
@@ -114,4 +114,12 @@ public abstract class DurableArray<E> implements Durable, Iterable<E> {
*/
public abstract Iterator<E> iterator();
+ /**
+ * get size of the array
+ *
+ * @return size of the array
+ */
+ public int getSize() {
+ return arraySize;
+ }
}