/** * Copyright (c) 2014, the Railo Company Ltd. * Copyright (c) 2015, Lucee Assosication Switzerland * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. * */ package lucee.runtime.dump; public class DumpRow { private final int highlightType; private final DumpData[] items; /** * constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param items items as DumpData Array */ public DumpRow(final int highlightType, final DumpData[] items) { this.highlightType = highlightType; this.items = items; } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array */ public DumpRow(final int highlightType, final DumpData item1) { this(highlightType, new DumpData[] { item1 }); } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array * @param item2 item for the array */ public DumpRow(final int highlightType, final DumpData item1, final DumpData item2) { this(highlightType, new DumpData[] { item1, item2 }); } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array * @param item2 item for the array * @param item3 item for the array */ public DumpRow(final int highlightType, final DumpData item1, final DumpData item2, final DumpData item3) { this(highlightType, new DumpData[] { item1, item2, item3 }); } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array * @param item2 item for the array * @param item3 item for the array * @param item4 item for the array */ public DumpRow(final int highlightType, final DumpData item1, final DumpData item2, final DumpData item3, final DumpData item4) { this(highlightType, new DumpData[] { item1, item2, item3, item4 }); } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array * @param item2 item for the array * @param item3 item for the array * @param item4 item for the array * @param item5 item for the array */ public DumpRow(final int highlightType, final DumpData item1, final DumpData item2, final DumpData item3, final DumpData item4, final DumpData item5) { this(highlightType, new DumpData[] { item1, item2, item3, item4, item5 }); } /** * Constructor of the class * * @param highlightType binary Values define wich columns are higlithed * @param item1 item for the array * @param item2 item for the array * @param item3 item for the array * @param item4 item for the array * @param item5 item for the array * @param item6 item for the array */ public DumpRow(final int highlightType, final DumpData item1, final DumpData item2, final DumpData item3, final DumpData item4, final DumpData item5, final DumpData item6) { this(highlightType, new DumpData[] { item1, item2, item3, item4, item5, item6 }); } /** * @return the highlightType */ public int getHighlightType() { return highlightType; } /** * @return the items */ public DumpData[] getItems() { return items; } }