summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-04-14 01:13:50 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-04-14 01:13:50 +0000
commit6af3a8bd605f17d04b4d852e8d402ee6aab1ed11 (patch)
tree11efdc94f8c378b3fcf44fa6031342ff9752ab5a
parentfdcf376a62f35396ccb8e8ba5eeeb2670e45e75b (diff)
downloadjackcess-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.java5
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);
}
}