diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2008-04-14 01:13:50 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2008-04-14 01:13:50 +0000 |
commit | 6af3a8bd605f17d04b4d852e8d402ee6aab1ed11 (patch) | |
tree | 11efdc94f8c378b3fcf44fa6031342ff9752ab5a | |
parent | fdcf376a62f35396ccb8e8ba5eeeb2670e45e75b (diff) | |
download | jackcess-6af3a8bd605f17d04b4d852e8d402ee6aab1ed11.tar.gz jackcess-6af3a8bd605f17d04b4d852e8d402ee6aab1ed11.zip |
tweak tostring
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@323 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index 9cc5325..9e6f19f 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -2233,9 +2233,12 @@ public abstract class Index implements Comparable<Index> { @Override public final String toString() { + List<Entry> entries = getEntries(); return (isLeaf() ? "Leaf" : "Node") + "DataPage[" + getPageNumber() + "] " + getPrevPageNumber() + ", " + getNextPageNumber() + ", (" + - getChildTailPageNumber() + "), " + getEntries(); + getChildTailPageNumber() + "), " + + (isLeaf() ? ("[" + entries.get(0) + ", " + + entries.get(entries.size() - 1) + "]") : entries); } } |