From 6af3a8bd605f17d04b4d852e8d402ee6aab1ed11 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Mon, 14 Apr 2008 01:13:50 +0000 Subject: [PATCH] tweak tostring git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@323 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/Index.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { @Override public final String toString() { + List entries = getEntries(); return (isLeaf() ? "Leaf" : "Node") + "DataPage[" + getPageNumber() + "] " + getPrevPageNumber() + ", " + getNextPageNumber() + ", (" + - getChildTailPageNumber() + "), " + getEntries(); + getChildTailPageNumber() + "), " + + (isLeaf() ? ("[" + entries.get(0) + ", " + + entries.get(entries.size() - 1) + "]") : entries); } } -- 2.39.5